- From: Yoav Weiss <notifications@github.com>
- Date: Fri, 14 Feb 2020 06:04:53 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 14 February 2020 14:05:05 UTC
yoavweiss commented on this pull request. > @@ -760,7 +764,12 @@ fetch("https://victim.example/naïve-endpoint", { </div> <dt>Otherwise - <dd><p>Return false. + <dd> + <p>If <var>name</var> does not begin with the string "<code>sec-</code>", return false. + + <p class=note>As all headers beginning with "<code>Sec-</code>" are <a>forbidden header + names</a>, we have some confidence that they're generated by the user agent, and not via APIs + that developers directly control. So, the surprising bits would be that `Sec-` prefixed headers would disappear from the requests when developers would modify the request in SW in any way (but won't disappear for pass-through cases). For the CH case, I think we could solve this by re-adding them below SWs (but @annevk had reservations). For Fetch-Metadata, maybe you could simply add them below SWs? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1000#discussion_r379446148
Received on Friday, 14 February 2020 14:05:05 UTC