Skip to content

Commit bf3175a

Browse files
committed
Allows unsafe-eval in webviews
1 parent 92d2586 commit bf3175a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ function getCspHtmlPlugin(mode, env) {
675675
'script-src':
676676
mode !== 'production'
677677
? ['#{cspSource}', "'nonce-#{cspNonce}'", "'unsafe-eval'"]
678-
: ['#{cspSource}', "'nonce-#{cspNonce}'"],
678+
: ['#{cspSource}', "'nonce-#{cspNonce}'", "'unsafe-eval'"],
679679
'style-src':
680680
mode === 'production'
681681
? ['#{cspSource}', "'nonce-#{cspNonce}'", "'unsafe-hashes'"]

0 commit comments

Comments
 (0)