Skip to content

Commit

Permalink
fix: allow cf in script-src
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 24, 2024
1 parent 2ce90c1 commit 9504a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export default defineNuxtConfig({
crossOriginEmbedderPolicy: false,
contentSecurityPolicy: {
'script-src-attr': ['\'self\'', '\'unsafe-inline\''],
'script-src': ['\'self\'', '\'unsafe-inline\'', 'https://static.cloudflareinsights.com'],
'img-src': ['\'self\'', 'data:', 'https://avatars.githubusercontent.com'],
},
},
Expand Down

0 comments on commit 9504a4b

Please sign in to comment.