Skip to content

Conversation

@jiripudil
Copy link
Contributor

  • bug fix? no
  • new feature? yes
  • BC break? no
  • doc PR: doesn't seem necessary

This pull request adds AJAX debug bar support for requests made via Fetch API instead of XMLHttpRequest.

There is one caveat which, however, should imo be addressed in the userland: fetch() must be sent with credentials set to include or same-origin for the cookies to be passed and thus for the debug bar session storage to work. This implementation sanely defaults to same-origin if the option is not provided, but if the user sends their own Request object, the credentials option defaults to omit if not provided, and cannot be overridden. I believe it should be left up to the user to handle such situations.

@dg dg merged commit 8fcdc40 into nette:master Feb 27, 2017
@jiripudil jiripudil deleted the feature/ajax-via-fetch branch February 27, 2017 12:37
dg pushed a commit that referenced this pull request May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants