Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Address annevk@ nits.
  • Loading branch information
ArthurSonzogni committed Sep 22, 2021
commit 89aaca1fdd377c5b10133cceb56a100ca618fd27
22 changes: 12 additions & 10 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1896,14 +1896,15 @@ source of security bugs. Please seek security review for features that deal with
<a for=/>request</a> <var>request</var>, run theses steps:
Comment thread
ArthurSonzogni marked this conversation as resolved.
Outdated

<ol>
<li><p>If <var>request</var>'s <a for=request>mode</a> is not <code>no-cors</code>", return
<li><p>If <var>request</var>'s <a for=request>mode</a> is not <code>no-cors</code>", then return
true.</p>

<li><p>If <var>request</var>'s <a for=request>client</a> is null, return true.</p>

<li><p>If <var>request</var>'s <a for=request>client</a>'s
<a for="environment settings object">policy container</a>'s
<a for="policy container">embedder policy</a> is not
<a for="policy container">embedder policy</a>'s
<a for="embedder policy">value</a> is not
"<code><a for="embedder policy value">credentialless</a></code>", return true.</p>

<li><p>If <var>request</var>'s <a for=request>origin</a> is <a>same origin</a> with
Expand Down Expand Up @@ -3535,17 +3536,18 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
<p>If <var>policy</var> is null, switch on <var>embedderPolicyValue</var>:</p>
<dl class=switch>
<dt>`<a for="embedder policy value">unsafe-none</a>`
Comment thread
annevk marked this conversation as resolved.
Outdated
<dd> Do nothing.
<dd><p>Do nothing.

<dt>`<a for="embedder policy value">credentialless</a>`
<dd> Set <var>policy</var> to `<code>same-origin</code>` if one of the following is true:
<ul>
<li><var>response</var>'s <a for="response">request-include-credentials</a> is true.
<li><var>forNavigation</var> is true.
</ul>
<dd>
<p>Set <var>policy</var> to `<code>same-origin</code>` if one of the following is true:
<ul>
<li><var>response</var>'s <a for="response">request-include-credentials</a> is true.
<li><var>forNavigation</var> is true.
</ul>

<dt>`<a for="embedder policy value">require-corp</a>`
<dd> Set <var>policy</var> to `<code>same-origin</code>`.
<dd><p>Set <var>policy</var> to `<code>same-origin</code>`.
</dl>
</li>

Expand Down Expand Up @@ -4707,7 +4709,7 @@ steps. They return a <a for=/>response</a>.
<p>is true; otherwise false.

<li><p>If <a>Cross-Origin-Embedder-Policy allows credentials</a> with <var>request</var> returns
false, set <var>includeCredentials</var> to false.</p>
false, then set <var>includeCredentials</var> to false.</p>
Comment thread
annevk marked this conversation as resolved.
Outdated

<li><p>Let <var>contentLength</var> be <var>httpRequest</var>'s <a for=request>body</a>'s
<a for=body>length</a>, if <var>httpRequest</var>'s <a for=request>body</a> is non-null;
Expand Down