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

Ensure cookies aren't sent if credentials: omit #526

Merged
merged 1 commit into from
May 24, 2017
Merged

Ensure cookies aren't sent if credentials: omit #526

merged 1 commit into from
May 24, 2017

Conversation

satya164
Copy link
Contributor

If the default value of withCredentials is true, as opposed to false, the library will send the cookies even if credentials: omit is specified. This affects React Native where the default value is true since cross-origin concerns don't apply.

If the default value of `withCredentials` is `true`, as opposed to `false`, the library will send the cookies even if `credentials: omit` is specified. This affects React Native where the default value is `true` since cross-origin concerns don't apply.
@ericvicenti
Copy link

Yes, we very much need this for React Native's fetch because the XMLHttpRequest.sendRequest default value of withCredentials is true to match the native platforms' default behavior.

Thank you @satya164!

@mislav
Copy link
Contributor

mislav commented May 24, 2017

Makes sense; thanks!

@mislav mislav merged commit 9a0c992 into JakeChampion:master May 24, 2017
@satya164 satya164 deleted the patch-1 branch May 24, 2017 19:48
@misogl
Copy link

misogl commented Dec 7, 2017

Just ran into this issue in React Native. Could you please publish a new version of this package with this fix?
Thanks.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants