Skip to content

Commit 8d27e59

Browse files
committed
Allow HTTP scheme fetches to make CORS preflight
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).
1 parent bdb452e commit 8d27e59

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

fetch.bs

+7-1
Original file line numberDiff line numberDiff line change
@@ -5106,7 +5106,13 @@ steps:
51065106
<p>When in doubt, return a <a>network error</a>.
51075107

51085108
<dt><a>HTTP(S) scheme</a>
5109-
<dd><p>Return the result of running <a>HTTP fetch</a> given <var>fetchParams</var>.
5109+
<dd>
5110+
<ol>
5111+
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>navigate</code>", then return
5112+
the result of running <a>HTTP fetch</a> given <var>fetchParams</var> and true.
5113+
5114+
<li><p>Return the result of running <a>HTTP fetch</a> given <var>fetchParams</var>.
5115+
</ol>
51105116
</dl>
51115117

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

0 commit comments

Comments
 (0)