Skip to content

Commit 2c415fc

Browse files
committed
adding nonce script-src back in
1 parent 69b3d3a commit 2c415fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resxProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class ResxProvider implements vscode.CustomTextEditorProvider {
136136
<meta name="viewport" content="width=device-width, initial-scale=1.0">
137137
<meta
138138
http-equiv="Content-Security-Policy"
139-
content="default-src 'none'; img-src ${webview.cspSource} https:; script-src ${webview.cspSource}; style-src ${webview.cspSource};"
139+
content="default-src 'none'; img-src ${webview.cspSource} https:; script-src ${webview.cspSource}; style-src ${webview.cspSource}; script-src 'nonce-${nonce}';"
140140
/>
141141
</head>
142142
<body>

0 commit comments

Comments
 (0)