Skip to content

Commit

Permalink
build script nits
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed May 24, 2018
1 parent a633bf0 commit d27c5df
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ run these steps:</p>
<p>The
`<dfn export http-header id=http-cross-origin-resource-policy><code>Cross-Origin-Resource-Policy</code></dfn>`
response <a for=/>header</a> can be used to require checking a <a for=/>request</a>'s
<a for=request>current url</a>'s <a for=URL>origin</a> against a <a for=/>request</a>'s
<a for=request>current url</a>'s <a for=url>origin</a> against a <a for=/>request</a>'s
<a for=request>origin</a> when <a for=/>request</a>'s <a for=request>mode</a> is
"<code>no-cors</code>".

Expand All @@ -2460,17 +2460,18 @@ Cross-Origin-Resource-Policy = %x73.61.6D.65 / %x73.61.6D.65.2D.73.69.74.65

<li>
<p>If <var>request</var>'s <a for=request>origin</a> is <a>same origin</a> with
<var>request</var>'s <a for=request>current url</a>'s <a for=URL>origin</a>, then return
<var>request</var>'s <a for=request>current url</a>'s <a for=url>origin</a>, then return
<b>allowed</b>.

<p class=note>A cross-origin response redirecting to a same or same-site resource with the
`<code header>Cross-Origin-Resource-Policy</code>` header specified does not affect anything.
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` header specified does not affect
anything.
<!-- We could make this have an effect if we fix https://github.com/whatwg/fetch/pull/594 first,
but even then we normally do not let this have any effect for "no-cors" so it would be
somewhat inconsistent if it did here, but might still be better... -->

<li><p>Let <var>policy</var> be the <a>combined value</a> with
`<code header>Cross-Origin-Resource-Policy</code>` and <var>response</var>'s
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` and <var>response</var>'s
<a for=response>header list</a>.

<li><p>If <var>policy</var> is `<code>same</code>`, then return <b>blocked</b>.
Expand All @@ -2481,9 +2482,9 @@ Cross-Origin-Resource-Policy = %x73.61.6D.65 / %x73.61.6D.65.2D.73.69.74.65
<ul class=brief>
<li><p><var>request</var>'s <a for=request>origin</a>'s <a for=origin>host</a>
<a>is a registrable domain suffix of or is equal to</a> <var>request</var>'s
<a for=request>current url</a>'s <a for=URL>host</a>
<a for=request>current url</a>'s <a for=url>host</a>

<li><p><var>request</var>'s <a for=request>current url</a>'s <a for=URL>host</a>
<li><p><var>request</var>'s <a for=request>current url</a>'s <a for=url>host</a>
<a>is a registrable domain suffix of or is equal to</a> <var>request</var>'s
<a for=request>origin</a>'s <a for=origin>host</a>
</ul>
Expand Down

0 comments on commit d27c5df

Please sign in to comment.