Skip to content

Commit 1ee2cfe

Browse files
authored
Update forbidden request headers in glossary (#41830)
* Update forbidden request headers in glossary Added 'Cookie2' and 'Set-Cookie', removed 'Permissions-Policy' and added a note about 'Access-Control-Request-Private-Network' for Chrome. * Replace Cookie2 with formatted code syntax
1 parent c6ed438 commit 1ee2cfe

File tree

1 file changed

+5
-1
lines changed
  • files/en-us/glossary/forbidden_request_header

1 file changed

+5
-1
lines changed

files/en-us/glossary/forbidden_request_header/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ Forbidden headers are one of the following:
2828
- {{HTTPHeader("Connection")}}
2929
- {{HTTPHeader("Content-Length")}}
3030
- {{HTTPHeader("Cookie")}}
31+
- `Cookie2`
3132
- {{HTTPHeader("Date")}}
3233
- {{HTTPHeader("DNT")}}
3334
- {{HTTPHeader("Expect")}}
3435
- {{HTTPHeader("Host")}}
3536
- {{HTTPHeader("Keep-Alive")}}
3637
- {{HTTPHeader("Origin")}}
37-
- {{HTTPHeader("Permissions-Policy")}}
3838
- `Proxy-` headers
3939
- `Sec-` headers
4040
- {{HTTPHeader("Referer")}}
41+
- {{HTTPHeader("Set-Cookie")}}
4142
- {{HTTPHeader("TE")}}
4243
- {{HTTPHeader("Trailer")}}
4344
- {{HTTPHeader("Transfer-Encoding")}}
@@ -53,6 +54,9 @@ Forbidden headers are one of the following:
5354
> [!NOTE]
5455
> While the {{HTTPHeader("Referer")}} header is listed as a forbidden header [in the spec](https://fetch.spec.whatwg.org/#forbidden-request-header), the user agent does not retain full control over it and the header can be programmatically modified. For example, when using [`fetch()`](/en-US/docs/Web/API/Window/fetch), the {{HTTPHeader("Referer")}} header can be programmatically modified via the [`referrer` option](/en-US/docs/Web/API/RequestInit#referrer).
5556
57+
> [!NOTE]
58+
> Chrome also forbids `Access-Control-Request-Private-Network`
59+
5660
## See also
5761

5862
- Related glossary terms:

0 commit comments

Comments
 (0)