Skip to content

Commit defe29f

Browse files
committed
Add no-cors dictionary support with Cross-Origin-Resource-Policy opt-in
1 parent 8bc5398 commit defe29f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

fetch.bs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6435,8 +6435,14 @@ run these steps:
64356435
<li><p>Let <var>compressionDictionaryCache</var> be the result of
64366436
<a>determining the compression-dictionary cache partition</a> given <var>request</var>.
64376437

6438-
<li><p>If <var>compressionDictionaryCache</var> is null or <var>request</var>'s
6439-
<a for=request>response tainting</a> is "<code>opaque</code>", then return <var>response</var>.
6438+
<li><p>If <var>compressionDictionaryCache</var> is null, then return <var>response</var>.
6439+
6440+
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6441+
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6442+
<a for=response>header list</a>.
6443+
6444+
<li><p>If <var>request</var>'s <a for=request>response tainting</a> is "<code>opaque</code>" and
6445+
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return <var>response</var>.
64406446

64416447
<li><p>Let <var>expirationTime</var> be the time at which the <var>response</var> becomes stale.
64426448

@@ -6504,7 +6510,12 @@ given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
65046510
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
65056511
then return <var>response</var>.
65066512

6507-
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>", then return a
6513+
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6514+
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6515+
<a for=response>header list</a>.
6516+
6517+
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>" and
6518+
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return a
65086519
<a>network error</a>.
65096520

65106521
<li><p>Let <var>availableDictionaryHash</var> be the result of

0 commit comments

Comments
 (0)