Skip to content

Commit

Permalink
chore: cleanup CSP Example
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding-SE committed Nov 30, 2023
1 parent 1a9d6fa commit 13af6f5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions examples/example-csp-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ <h2>
<ul>
<li>CSP header, currently using
<code>
default-src 'self';
script-src 'self' https://cdn.jsdelivr.net 'nonce-browser-sync';
style-src 'self' 'nonce-random-string'; require-trusted-types-for 'script';
trusted-types dompurify;
<pre>
default-src 'self';
script-src 'self' https://cdn.jsdelivr.net 'nonce-browser-sync';
style-src 'self' 'nonce-random-string'; require-trusted-types-for 'script';
trusted-types dompurify;
</pre>
</code>
</li>
<li>
<strong>Do not use <code>https://cdn.jsdelivr.net</code> as CSP since that is too broad and risky. We only do it for demo purposes</strong>
</li>
</ul>
<h2>View Source:</h2>
<ul>
Expand Down

0 comments on commit 13af6f5

Please sign in to comment.