]> git.kaiwu.me - njs.git/commit
Fetch: removed special treatment of forbidden headers.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 10 May 2023 05:09:13 +0000 (22:09 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 10 May 2023 05:09:13 +0000 (22:09 -0700)
commitf07ee7d3564b8e0dd2134b9b1bb2f32da554e4c4
tree958e0134dd66e0e69e42d0bf7053b6018e0fe812
parentee4815f2605de3eaaafd919f6600d7cbfef3934c
Fetch: removed special treatment of forbidden headers.

In c43261bad627 (0.7.10), a notion of forbidden headers was introduced
in accordance in Fetch API.  In the API the Forbidden headers are not
allowed to be changed from JavaScript code for security reasons.

The restriction is removed because there are use cases where Host (which
is considered forbidden) is different from the host address in
URL and JavaScript code is expected to be a trusted source (unlike a
browser context).

This closes #638 issue on Github.
nginx/ngx_js_fetch.c