Skip to content

Commit

Permalink
example of require-sri-for
Browse files Browse the repository at this point in the history
  • Loading branch information
shekyan committed May 23, 2016
1 parent 4dbb255 commit a3fe14f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.bikeshed.bs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,27 @@ Given a <a>request</a> (|request|) and a <a>policy</a> (|policy|):

3. Return "Allowed".

<div class="example">
A page with the following Content Security Policy:

<pre>
Content-Security-Policy: <a>require-sri-for</a> script style
</pre>

is equivalent to Content Security Policy delivered through <meta>
element:

<pre>
&lt;meta http-equiv="Content-Security-Policy"
content="<a>require-sri-for</a> script style"&gt;
</pre>


and requires <a>integrity metadata</a> be present in `script`
and `link` HTML elements that contain `src` attribute.
</div>


## Response verification algorithms ## {#response-verification-algorithms}

### Apply |algorithm| to |response| ### {#apply-algorithm-to-response}
Expand Down

0 comments on commit a3fe14f

Please sign in to comment.