Skip to content

Commit e8ce404

Browse files
committed
Add no-cors dictionary support with Cross-Origin-Resource-Policy opt-in
1 parent 1d97a05 commit e8ce404

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

fetch.bs

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

6507-
<li><p>If <var>compressionDictionaryCache</var> is null or <var>request</var>'s
6508-
<a for=request>response tainting</a> is "<code>opaque</code>", then return <var>response</var>.
6507+
<li><p>If <var>compressionDictionaryCache</var> is null, then return <var>response</var>.
6508+
6509+
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6510+
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6511+
<a for=response>header list</a>.
6512+
6513+
<li><p>If <var>request</var>'s <a for=request>response tainting</a> is "<code>opaque</code>" and
6514+
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return <var>response</var>.
65096515

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

@@ -6573,7 +6579,12 @@ given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
65736579
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
65746580
then return <var>response</var>.
65756581

6576-
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>", then return a
6582+
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6583+
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6584+
<a for=response>header list</a>.
6585+
6586+
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>" and
6587+
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return a
65776588
<a>network error</a>.
65786589

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

0 commit comments

Comments
 (0)