Skip to content

Commit 283c2ae

Browse files
authored
Always send Origin header for non-HEAD/GET CORS fetches
In particular when they are same-origin. Tests: web-platform-tests/wpt#36332. Fixes #1022.
1 parent 7487a97 commit 283c2ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fetch.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,8 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
30163016

30173017
<ol>
30183018
<li>
3019-
<p>Switch on <var>request</var>'s <a for=request>referrer policy</a>:
3019+
<p>If <var>request</var>'s <a for=request>mode</a> is not "<code>cors</code>",
3020+
then switch on <var>request</var>'s <a for=request>referrer policy</a>:
30203021

30213022
<dl class=switch>
30223023
<dt>"<code>no-referrer</code>"

0 commit comments

Comments
 (0)