Skip to content

Commit a159aee

Browse files
committed
Make sec-purpose:prefetch cors-safelisted
1 parent 4fd1997 commit a159aee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fetch.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,9 @@ fetch("https://victim.example/naïve-endpoint", {
981981
<p class=note>As web browsers have historically not emitted ranges such as
982982
`<code>bytes=-500</code>` this algorithm does not safelist them.
983983
</ol>
984+
<dt>`<code>sec-purpose</code>`
985+
<dd>
986+
<p>If <var>value</var> is `<code>prefetch</code>`, return true. Otherwise return false.
984987

985988
<dt>Otherwise
986989
<dd><p>Return false.

0 commit comments

Comments
 (0)