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

fix: Do not include credentials by default #1191

Merged
merged 1 commit into from
Jan 15, 2018

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jan 12, 2018

Reverts a default credentials: 'include' for fetch that was set in #1177. This default was primarily added for self-hosted Sentry installations and should therefore require explicit configuration with fetchOptions.

Most importantly, this breaks when a user with Sentry account (and therefore an active sentry.io cookie) visits any webpage using the Raven SDK. The cookie will be rejected by CORS protection because Sentry does not send a Access-Control-Allow-Credentials. This is expected behavior, see getsentry/sentry#6970 for more information.

Also, this is not usual browser behavior and should therefore not be default. And, it is inconsistent with the XMLHttpRequest implementation which does not include credentials by default.

Fixes getsentry/sentry#6970

@kamilogorek kamilogorek merged commit f6482e5 into master Jan 15, 2018
@kamilogorek
Copy link
Contributor

cc @RuslanZavacky

@kamilogorek kamilogorek deleted the fix/fetch-credentials-defaults branch January 15, 2018 09:47
@RuslanZavacky
Copy link
Contributor

My bad :) 👍 for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants