Skip to content

Commit 4dbf64d

Browse files
committed
rename same to same-origin per feedback
1 parent f31e50a commit 4dbf64d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fetch.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ response <a for=/>header</a> can be used to require checking a <a for=/>request<
25262526
<p>Its <a for=header>value</a> <a>ABNF</a>:
25272527

25282528
<pre>
2529-
Cross-Origin-Resource-Policy = %x73.61.6D.65 / %x73.61.6D.65.2D.73.69.74.65 ; "same" / "same-site", case-sensitive</pre>
2529+
Cross-Origin-Resource-Policy = %x73.61.6D.65.2D.6F.72.69.67.69.6E / %x73.61.6D.65.2D.73.69.74.65 ; "same-origin" / "same-site", case-sensitive</pre>
25302530

25312531
<p>To perform a <dfn>cross-origin resource policy check</dfn>, given a <var>request</var> and
25322532
<var>response</var>, run these steps:</p>
@@ -2550,11 +2550,11 @@ Cross-Origin-Resource-Policy = %x73.61.6D.65 / %x73.61.6D.65.2D.73.69.74.65
25502550
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` and <var>response</var>'s
25512551
<a for=response>header list</a>.
25522552

2553-
<p class=note>This means that `<code>Cross-Origin-Resource-Policy: same-site, same</code>` ends up
2554-
as <b>allowed</b> below as it will never match anything. Two or more
2553+
<p class=note>This means that `<code>Cross-Origin-Resource-Policy: same-site, same-origin</code>`
2554+
ends up as <b>allowed</b> below as it will never match anything. Two or more
25552555
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` headers will have the same effect.
25562556

2557-
<li><p>If <var>policy</var> is `<code>same</code>`, then return <b>blocked</b>.
2557+
<li><p>If <var>policy</var> is `<code>same-origin</code>`, then return <b>blocked</b>.
25582558

25592559
<li><p>If <var>request</var>'s <a for=request>origin</a>'s <a for=url>host</a> is <a>same site</a>
25602560
with <var>request</var>'s <a for=request>current url</a>'s <a for=url>host</a>, then return

0 commit comments

Comments
 (0)