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

FF111 fetch() remove Authorization header on cross origin redirects #19064

Merged
merged 1 commit into from Mar 8, 2023

Conversation

hamishwillee
Copy link
Collaborator

FF111 strips the Authorization header added by developers from cross-origin redirects - see https://bugzilla.mozilla.org/show_bug.cgi?id=1802086. This adds a feature to the fetch() entry.

This was tested with https://wpt.live/fetch/api/credentials/authentication-redirection.any.worker.htm - the first test should show that the header is not stripped from a normal response, the second that it is not stripped from a same-origin redirect, and the third that it is from a cross-origin redirect.

Note that Safari is "accidentally" compliant in 15.4 because it strips the authorization header in both cases. Safari 16.1 on browserstack does the "right thing" for all cases. So I have indicated Safari 16.1 because it more closely reflects the expected behaviour with this header on redirect.

I could not test deno so have set to false. Probably that is right given how recent this is.

Other docs info here: mdn/content#22533

@github-actions github-actions bot added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants