Skip to content

Commit 66fc839

Browse files
committed
Add 'unsafe-eval' to CSP for CFG viewer webview
Otherwise the webview doesn't work when built locally
1 parent 2bca2f8 commit 66fc839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/common/vscode/webview-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function getHtmlForWebview(
8080
<head>
8181
<meta http-equiv="Content-Security-Policy"
8282
content="default-src 'none'; script-src 'nonce-${nonce}'${
83-
allowWasmEval ? " 'wasm-unsafe-eval'" : ""
83+
allowWasmEval ? " 'wasm-unsafe-eval' 'unsafe-eval'" : ""
8484
}; font-src ${fontSrc}; style-src ${styleSrc}; connect-src ${
8585
webview.cspSource
8686
};">

0 commit comments

Comments
 (0)