Skip to content

Commit

Permalink
fix: csp add webview.cspSource
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehr1 committed Jul 8, 2021
1 parent e278335 commit 3fea766
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension/fbaEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ export class FBAEditorProvider implements vscode.CustomTextEditorProvider, vscod
<meta http-equiv="Content-Security-Policy"
content="default-src 'none';
img-src vscode-resource: https:;
script-src 'unsafe-eval' 'unsafe-inline' vscode-resource:;
style-src vscode-resource: 'unsafe-inline';">
img-src ${webview.cspSource} vscode-resource: https:;
script-src ${webview.cspSource} 'unsafe-eval' 'unsafe-inline' vscode-resource:;
style-src ${webview.cspSource} vscode-resource: 'unsafe-inline';">
<meta name="viewport" content="width=device-width, initial-scale=0.5">
Expand Down

0 comments on commit 3fea766

Please sign in to comment.