Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d27c5df

Browse files
committedMay 24, 2018
build script nits
1 parent a633bf0 commit d27c5df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎fetch.bs

+7-6
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ run these steps:</p>
24422442
<p>The
24432443
`<dfn export http-header id=http-cross-origin-resource-policy><code>Cross-Origin-Resource-Policy</code></dfn>`
24442444
response <a for=/>header</a> can be used to require checking a <a for=/>request</a>'s
2445-
<a for=request>current url</a>'s <a for=URL>origin</a> against a <a for=/>request</a>'s
2445+
<a for=request>current url</a>'s <a for=url>origin</a> against a <a for=/>request</a>'s
24462446
<a for=request>origin</a> when <a for=/>request</a>'s <a for=request>mode</a> is
24472447
"<code>no-cors</code>".
24482448

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

24612461
<li>
24622462
<p>If <var>request</var>'s <a for=request>origin</a> is <a>same origin</a> with
2463-
<var>request</var>'s <a for=request>current url</a>'s <a for=URL>origin</a>, then return
2463+
<var>request</var>'s <a for=request>current url</a>'s <a for=url>origin</a>, then return
24642464
<b>allowed</b>.
24652465

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

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

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

2486-
<li><p><var>request</var>'s <a for=request>current url</a>'s <a for=URL>host</a>
2487+
<li><p><var>request</var>'s <a for=request>current url</a>'s <a for=url>host</a>
24872488
<a>is a registrable domain suffix of or is equal to</a> <var>request</var>'s
24882489
<a for=request>origin</a>'s <a for=origin>host</a>
24892490
</ul>

0 commit comments

Comments
 (0)
Please sign in to comment.