Skip to content

Commit

Permalink
Harden CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Sep 1, 2024
1 parent 87e926c commit 7c1db72
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
<meta
http-equiv="Content-Security-Policy"
content="
default-src 'none';
connect-src 'self';
font-src 'self';
img-src 'self' data:;
manifest-src 'self';
script-src 'self' 'sha384-XiiRgIf5zQ4bHRD8h77lp8w+PAEkizITuBcqxsfIJIHIN8EPq6rX/IXz7CzbJ8/v' https://cdnjs.cloudflare.com/ajax/libs/bootstrap/;
style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/bootstrap/;"
default-src 'none';
font-src 'self';
img-src 'self' data:;
connect-src 'self';
worker-src 'self';
manifest-src 'self';
script-src-elem 'self' 'sha384-XiiRgIf5zQ4bHRD8h77lp8w+PAEkizITuBcqxsfIJIHIN8EPq6rX/IXz7CzbJ8/v' https://cdnjs.cloudflare.com/ajax/libs/bootstrap/;
style-src-elem 'self' 'sha384-fBcH0D+Mqn9267xWkqPrzMtuvPgtFK1cASMy5Vv+yDN3NHJTl/obqWjRw0Hk4PqU' https://cdnjs.cloudflare.com/ajax/libs/bootstrap/;
style-src-attr 'unsafe-inline';
"
/>

<title>ANSI-o-Matic</title>
Expand Down

0 comments on commit 7c1db72

Please sign in to comment.