-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Request's mode incorrectly documented #35488
Comments
Am I right in thinking that https://github.com/whatwg/fetch/blob/1dc1b034b208faf6652dced19954f67717da9ba1/review-drafts/2024-06.bs#L1985-L1988 also ought to be updated?
|
No, that’s the request’s “credentials mode” https://fetch.spec.whatwg.org/#concept-request-credentials-mode, right? Whereas, |
That's the bit I quoted (the green note): Am I misreading it? |
You’re not misreading — I just misread your earlier comment… So yeah, you’re right — that note should be updated |
In https://developer.mozilla.org/en-US/docs/Web/API/Request/mode it states
However, that is incorrect. The only no-CORS headers that are safelisted are here: https://fetch.spec.whatwg.org/#no-cors-safelisted-request-header-name. And that's a subset of the CORS-safelisted requested headers.
This probably came to be when the
Range
header was added for CORS.Context: whatwg/fetch#1310 (comment). Credit: @anson0370.
The text was updated successfully, but these errors were encountered: