Skip to content

Commit

Permalink
chore(site): tweaks CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Dec 24, 2024
1 parent 1dedd4d commit f3a2a0a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
5 changes: 2 additions & 3 deletions docs/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
manifest-src 'self';
media-src 'none';
object-src 'none';
script-src 'self' 'unsafe-eval' https://code.getmdl.io/1.3.0/material.min.js;
script-src 'self' 'unsafe-eval' 'nonce-known-inline-script' https://code.getmdl.io/1.3.0/material.min.js;
style-src 'unsafe-inline' https://fonts.googleapis.com/icon https://code.getmdl.io/1.3.0/material.purple-pink.min.css;
form-action 'none';
navigate-to 'none'"
form-action 'none'"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="{{materialTheme}}">
Expand Down
5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
manifest-src 'self';
media-src 'none';
object-src 'none';
script-src 'self' 'unsafe-eval' https://code.getmdl.io/1.3.0/material.min.js;
script-src 'self' 'unsafe-eval' 'nonce-known-inline-script' https://code.getmdl.io/1.3.0/material.min.js;
style-src 'unsafe-inline' https://fonts.googleapis.com/icon https://code.getmdl.io/1.3.0/material.purple-pink.min.css;
form-action 'none';
navigate-to 'none'"
form-action 'none'"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.purple-pink.min.css">
Expand Down
4 changes: 2 additions & 2 deletions docs/inpage.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand All @@ -16,8 +17,7 @@
object-src 'none';
script-src 'self' 'unsafe-eval';
style-src 'unsafe-inline';
form-action 'none';
navigate-to 'none'"
form-action 'none'"
/>
<script
src="{{sourceFile}}"
Expand Down
4 changes: 2 additions & 2 deletions docs/inpage.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand All @@ -16,8 +17,7 @@
object-src 'none';
script-src 'self' 'unsafe-eval';
style-src 'unsafe-inline';
form-action 'none';
navigate-to 'none'"
form-action 'none'"
/>
<script
src="state-machine-cat-inpage.min.js"
Expand Down

0 comments on commit f3a2a0a

Please sign in to comment.