Skip to content

Commit ac55fb3

Browse files
committed
fix(index html): add csp hash
Add styles hash to csp to avoid it getting blocked by browser
1 parent 34a0d61 commit ac55fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.html

+5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
<meta name="designer" content="imgix">
88
<meta name="developer" content="imgix">
99
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,maximum-scale=1">
10+
<!-- If CSP style policies, ensure SHA, nonce, or unsafe-inline are enabled -->
1011
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width">
12+
<meta
13+
http-equiv="Content-Security-Policy"
14+
content="style-src 'self' 'sha256-W+PadZMOYbQi3EzR/NC+KcPx3bNLCz0OtfWwp+LK9b4=' 'sha256-OdI56ZW769BKGaLghLr3uZVaaWfqyRwyccMiu8gXf0w=' 'sha256-W+PadZMOYbQi3EzR/NC+KcPx3bNLCz0OtfWwp+LK9b4=' 'sha256-cG/+JJX3ZZs6snnMipxMnaYWATXBcyQw3vFWJF1zmAM='"
15+
/>
1116

1217
<title>Drift Playground</title>
1318
<link rel="stylesheet" media="screen, projection" href="./dist/drift-basic.css">

0 commit comments

Comments
 (0)