Skip to content

Commit

Permalink
Clarify request's mode "cors" value
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker authored Feb 17, 2021
1 parent 3c90676 commit 72be227
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1390,8 +1390,10 @@ to not have to set <a for=/>request</a>'s <a for=request>referrer</a>.
<a>network error</a> if the request is not made to a same-origin URL.

<dt>"<code>cors</code>"
<dd>Makes the request a <a>CORS request</a>. Fetch will return a <a>network error</a> if the
requested resource does not understand the <a>CORS protocol</a>.
<dd>For requests whose <a for=request>response tainting</a> gets set to "<code>cors</code>", makes
the request a <a>CORS request</a> — in which case, fetch will return a <a>network error</a> if the
requested resource does not understand the <a>CORS protocol</a>, or if the requested resource is
one that intentionally does not participate in the <a>CORS protocol</a>.

<dt>"<code>no-cors</code>"
<dd>Restricts requests to using <a>CORS-safelisted methods</a> and
Expand Down

0 comments on commit 72be227

Please sign in to comment.