Skip to content

Commit eefc882

Browse files
committed
Make CORS-preflight fetches set the CORS flag
Otherwise a 401 response would not necessarily result in rejection. Fixes #741.
1 parent efe088f commit eefc882

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fetch.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4138,8 +4138,8 @@ the <a>CORS protocol</a> is understood. The so-called <a>CORS-preflight request<
41384138
successful it populates the <a>CORS-preflight cache</a> to minimize the
41394139
number of these <a lt="CORS-preflight fetch">fetches</a>.
41404140

4141-
<p>To perform a <dfn id=cors-preflight-fetch-0>CORS-preflight fetch</dfn> using <var>request</var>, run these
4142-
steps:
4141+
<p>To perform a <dfn id=cors-preflight-fetch-0>CORS-preflight fetch</dfn> using <var>request</var>,
4142+
run these steps:
41434143

41444144
<ol>
41454145
<li>
@@ -4184,8 +4184,7 @@ steps:
41844184
0x2C is not the way this was implemented, for better or worse.
41854185

41864186
<li><p>Let <var>response</var> be the result of performing an
4187-
<a>HTTP-network-or-cache fetch</a> using
4188-
<var>preflight</var>.
4187+
<a>HTTP-network-or-cache fetch</a> using <var>preflight</var> with the <i>CORS flag</i> set.
41894188

41904189
<li>
41914190
<p>If a <a for=cors>CORS check</a> for <var>request</var> and <var>response</var> returns success

0 commit comments

Comments
 (0)