fix: CSP for shiki

pull/1145/merge
Anthony Fu 2023-01-18 14:51:44 +01:00
rodzic 40c0afb09d
commit 88080573db
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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,