Skip to content

Commit

Permalink
Remove response's CSP list
Browse files Browse the repository at this point in the history
Complements w3c/webappsec-csp#493. Response component of CSP is now managed at a higher level of abstraction.
  • Loading branch information
antosart committed May 10, 2021
1 parent 5fac9e8 commit 5174a15
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions fetch.bs
Expand Up @@ -1937,11 +1937,6 @@ message as HTTP/2 does not support them.
<!-- If we ever expand the utility of this we need to carefully consider whether filtered responses
need to mask it, whether the cache API needs to store it, etc. -->

<p>A <a for=/>response</a> has an associated
<dfn export for=response id=concept-response-csp-list>CSP list</dfn>, which is a <a for=/>list</a>
of <a>Content Security Policy objects</a> for the <a for=/>response</a>. The list is empty unless
otherwise specified. [[!CSP]]

<p>A <a for=/>response</a> has an associated
<dfn export for=response id=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</dfn>
(a list of zero or more <a for=/>header</a>
Expand Down Expand Up @@ -3758,8 +3753,7 @@ steps:

<li>
<p>Return a new <a for=/>response</a> whose <a for=response>status</a> is
<var>noCorsResponse</var>'s <a for=response>status</a>, and <a for=response>CSP list</a>
is <var>noCorsResponse</var>'s <a for=response>CSP list</a>.
<var>noCorsResponse</var>'s <a for=response>status</a>.

<p class="warning">This is only an effective defense against side channel attacks if
<var>noCorsResponse</var> is kept isolated from the process that initiated the request.
Expand Down Expand Up @@ -3861,8 +3855,6 @@ steps:
<li><p>If <var>request</var>'s <a for=request>timing allow failed flag</a> is unset, then set
<var>internalResponse</var>'s <a for=response>timing allow passed flag</a>.

<li><p><a lt="Set response's CSP list">Set <var>internalResponse</var>'s CSP list</a>.

<li>
<p>If <var>response</var> is not a <a>network error</a> and any of the following returns
<b>blocked</b>
Expand Down

0 comments on commit 5174a15

Please sign in to comment.