@@ -4974,11 +4974,10 @@ run these steps:
4974
4974
<li><p> If <var> locationURL</var> 's <a for=url>scheme</a> is not an <a>HTTP(S) scheme</a> , then
4975
4975
return a <a>network error</a> .
4976
4976
4977
- <li><p> If <var> request</var> 's <a for=request>redirect count</a> is
4978
- twenty, return a <a>network error</a> .
4977
+ <li><p> If <var> request</var> 's <a for=request>redirect count</a> is 20, then return a
4978
+ <a>network error</a> .
4979
4979
4980
- <li><p> Increase <var> request</var> 's
4981
- <a for=request>redirect count</a> by one.
4980
+ <li><p> Increase <var> request</var> 's <a for=request>redirect count</a> by 1.
4982
4981
4983
4982
<li><p> If <var> request</var> 's <a for=request>mode</a> is "<code> cors</code> ",
4984
4983
<var> locationURL</var> <a>includes credentials</a> , and <var> request</var> 's
@@ -5016,6 +5015,16 @@ run these steps:
5016
5015
<a for=request>header list</a> .
5017
5016
</ol>
5018
5017
5018
+ <li>
5019
+ <p> If <var> request</var> 's <a for=request>current URL</a>' s <a for=url>origin</a> is not
5020
+ <a>same origin</a> with <var> locationURL</var> 's <a for=url>origin</a> , then
5021
+ <a for=list>for each</a> <var> headerName</var> of <a>CORS non-wildcard request-header name</a> ,
5022
+ <a for="header list">delete</a> <var> headerName</var> from <var> request</var> 's
5023
+ <a for=request>header list</a> .
5024
+
5025
+ <p class=note> I.e., the moment another origin is seen after the initial request, the
5026
+ `<code> Authorization</code> ` header is removed.
5027
+
5019
5028
<li>
5020
5029
<p> If <var> request</var> 's <a for=request>body</a> is non-null, then set <var>request</var>' s
5021
5030
<a for=request>body</a> to the <a for="body with type">body</a> of the result of
0 commit comments