Skip to content

Commit

Permalink
Allow HTTP scheme fetches to make CORS preflight
Browse files Browse the repository at this point in the history
This allows navigations to make CORS preflight requests, if the
navigation contains a request that is not safelisted. Navigation does
not (yet) provide APIs for non-safelisted requests; this update to the
fetch spec is a prerequisite for HTML spec changes that might add those
APIs (i.e. PUT method support in forms).
  • Loading branch information
alexpetros committed Nov 13, 2024
1 parent bdb452e commit 8d27e59
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5106,7 +5106,13 @@ steps:
<p>When in doubt, return a <a>network error</a>.

<dt><a>HTTP(S) scheme</a>
<dd><p>Return the result of running <a>HTTP fetch</a> given <var>fetchParams</var>.
<dd>
<ol>
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>navigate</code>", then return
the result of running <a>HTTP fetch</a> given <var>fetchParams</var> and true.

<li><p>Return the result of running <a>HTTP fetch</a> given <var>fetchParams</var>.
</ol>
</dl>

<li><p>Return a <a for=/>network error</a>.
Expand Down

0 comments on commit 8d27e59

Please sign in to comment.