Skip to content

Commit

Permalink
fix: CSP for shiki
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 18, 2023
1 parent 40c0afb commit 8808057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default defineNuxtConfig({
'img-src': ['\'self\'', 'https:', 'http:', 'data:'],
'media-src': ['\'self\'', 'https:', 'http:'],
'object-src': ['\'none\''],
'script-src': ['\'self\'', '\'unsafe-inline\''],
'script-src': ['\'self\'', '\'unsafe-inline\'', '\'wasm-unsafe-eval\''],
'script-src-attr': ['\'none\''],
'style-src': ['\'self\'', '\'unsafe-inline\''],
'upgrade-insecure-requests': true,
Expand Down

0 comments on commit 8808057

Please sign in to comment.