Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow HTTP scheme fetches to make CORS preflight for navigations #1785

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions 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>Let <var>forNavigation</var> be true if <a for=request>mode</a> is
<code>navigate</code>; false otherwise.
<li><p>Return the result of running <a>HTTP fetch</a> given <var>fetchParams</var> and
<var>forNavigation</var>.
</ol>
</dl>

<li><p>Return a <a for=/>network error</a>.
Expand All @@ -5118,7 +5124,7 @@ steps:

<div algorithm>
<p>To <dfn export id=concept-http-fetch>HTTP fetch</dfn>, given a <a for=/>fetch params</a>
<var>fetchParams</var> and an optional boolean <var>makeCORSPreflight</var> (default false), run
<var>fetchParams</var> and an optional boolean <var>allowCORS</var> (default false), run
these steps:
<!-- This is exported for service workers, but that specification only mentions it in passing. -->

Expand Down Expand Up @@ -5218,7 +5224,7 @@ these steps:

<ol>
<li>
<p>If <var>makeCORSPreflight</var> is true and one of these conditions is true:
<p>If <var>allowCORS</var> is true and one of these conditions is true:

<ul class=brief>
<li><p>There is no <a>method cache entry match</a> for <var>request</var>'s
Expand Down