Skip to content

Commit

Permalink
deploy demo with strict CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
vejja committed Oct 31, 2023
1 parent 5a901b2 commit 97c9d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineNuxtConfig({
headers: {
contentSecurityPolicy: {
'img-src': ["'self'", 'data:', 'https://i3.ytimg.com/vi/8RDPrptc9uU/hqdefault.jpg'],
'script-src': ["'self'", "'unsafe-inline'"]
'script-src': ["'self'", "'unsafe-inline'", "'strict-dynamic'", "'nonce-{{nonce}}'"]
},
},
nonce: true,
Expand All @@ -28,7 +28,7 @@ export default defineNuxtConfig({
interval: 1000
},
ssg: {
hashScripts: false
hashScripts: true
}
},
routeRules: {
Expand Down

0 comments on commit 97c9d10

Please sign in to comment.