Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added credentials = include for fetch #208

Conversation

ivanvanderbyl
Copy link

Now that Chrome 42 is on the beta channel we will start to use the native fetch implementation. This varies in a lot of ways form a traditional XHR request. One of the most obvious is that it omits sending cookies by default. This PR changes that default to include mode, which is similar to what we're used to.

@jhollingworth
Copy link
Contributor

Hey, this came up the other day (#203) but wasn't certain if this was a common case or not. It seems like that is the case so happy to accept this change.

I'm going to be releasing Marty v0.9 tomorrow so I'd prefer to introduce this change in that release. #209 implements this change as an http hook so you can opt out if you want.

One small change I made was to make credentials same-origin rather than include as it seems a little safer. Will this still work for you?

@ivanvanderbyl
Copy link
Author

same-origin should work for us.

@jhollingworth
Copy link
Contributor

👍

@ivanvanderbyl ivanvanderbyl deleted the add-native-fetch-credentials branch March 24, 2015 14:48
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