Skip to content

Commit 51d9e37

Browse files
author
Mirko Brodesser
authored
Add example for CSP header with 'none' (#453)
1 parent 2576d90 commit 51d9e37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/index.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,13 @@ Content-Security-Policy: trusted-types; require-trusted-types-for 'script'
16141614
</pre>
16151615
</div>
16161616

1617+
The keyword `'none'` may be used to explicitly express the above:
1618+
<div class="example" id="header-with-none-that-allows-no-policy-names">
1619+
<pre class="http">
1620+
Content-Security-Policy: trusted-types 'none'; require-trusted-types-for 'script'
1621+
</pre>
1622+
</div>
1623+
16171624
Keyword `'allow-duplicates'` allows for creating policies with a name that was already used.
16181625

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

0 commit comments

Comments
 (0)