Skip to content

Commit

Permalink
Add example for CSP header with 'none' (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodesser-Igalia authored Feb 26, 2024
1 parent 2576d90 commit 51d9e37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1614,6 +1614,13 @@ Content-Security-Policy: trusted-types; require-trusted-types-for 'script'
</pre>
</div>

The keyword `'none'` may be used to explicitly express the above:
<div class="example" id="header-with-none-that-allows-no-policy-names">
<pre class="http">
Content-Security-Policy: trusted-types 'none'; require-trusted-types-for 'script'
</pre>
</div>

Keyword `'allow-duplicates'` allows for creating policies with a name that was already used.

<div class="example" id="allow-duplicates-in-header">
Expand Down

0 comments on commit 51d9e37

Please sign in to comment.