-
Notifications
You must be signed in to change notification settings - Fork 23k
Update forbidden request headers in glossary #41830
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
Conversation
Added 'Cookie2' and 'Set-Cookie', removed 'Permissions-Policy' and added a note about 'Access-Control-Request-Private-Network' for Chrome.
|
Preview URLs Flaws (1)URL:
(comment last updated: 2025-11-07 16:17:38) |
| - {{HTTPHeader("Connection")}} | ||
| - {{HTTPHeader("Content-Length")}} | ||
| - {{HTTPHeader("Cookie")}} | ||
| - `Cookie2` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What browser is this implemented in? MDN doesn't document things that have no implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, some context on removal:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| > [!NOTE] | ||
| > Chrome also forbids `Access-Control-Request-Private-Network` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW We should document this header and add it to BCD mdn/browser-compat-data#25467.
Because we have not done so I think this is good (because there is no way for anyone to work out the support story on this) but when BCD/docs exist this would just be in the main list.



Description
The spec says
Cookie2andSet-Cookieare forbidden. Looking at the Chrome source code it also checks forAccess-Control-Request-Private-Network, which is added to the list in this draft spec.You can try it out by opening https://example.com/ and doing
and looking in the Network tab.
Additional details
Chrome source code: https://source.chromium.org/chromium/chromium/src/+/main:net/http/http_util.cc;l=324-348;drc=c8dc70b538f1bb0862f1be58237d6e945ee81819
Spec: https://fetch.spec.whatwg.org/#forbidden-request-header