Skip to content

Commit 8f5861e

Browse files
add content security policy (#7181)
1 parent 83185a6 commit 8f5861e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

news/2 Fixes/7007.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set a content security policy on webviews

src/client/common/application/webPanel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export class WebPanel implements IWebPanel {
132132
<head>
133133
<meta charset="utf-8">
134134
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
135+
<meta http-equiv="Content-Security-Policy" content="default-src 'unsafe-inline' 'unsafe-eval' vscode-resource: data: https: http:;">
135136
<meta name="theme-color" content="#000000">
136137
<meta name="theme" content="${Identifiers.GeneratedThemeName}"/>
137138
<title>React App</title>

0 commit comments

Comments
 (0)