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

Imprecise Access-Control-Request-Headers examples give practitioners false expectations #33313

Closed
jub0bs opened this issue Apr 29, 2024 · 0 comments · Fixed by #33318
Closed
Labels
Content:HTTP HTTP docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@jub0bs
Copy link
Contributor

jub0bs commented Apr 29, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers

What specific section or headline is this issue about?

Directives and Examples

What information was incorrect, unhelpful, or incomplete?

The text and examples are misleading about the laxity of the format that the Fetch standard imposes on the Access-Control-Request-Headers header. This lack of precision can trip practitioners up: rs/cors#176

What did you expect to see?

The Fetch standard requires browsers to construct a sorted list of unique, comma-delimited, byte-lowercase tokens corresponding to the CORS-unsafe request-header names. The text and the examples should reflect that.

Do you have any supporting links, references, or citations?

Do you have anything more you want to share?

Other pages of MDN Web Docs are affected.

@jub0bs jub0bs added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Apr 29, 2024
@github-actions github-actions bot added the Content:HTTP HTTP docs label Apr 29, 2024
jub0bs added a commit to jub0bs/content that referenced this issue Apr 29, 2024
jub0bs added a commit to jub0bs/content that referenced this issue Apr 29, 2024
jub0bs added a commit to jub0bs/content that referenced this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTTP HTTP docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
1 participant