Skip to content

Commit

Permalink
Fix #1010 (#1020)
Browse files Browse the repository at this point in the history
* Fix #1010

* explicit csp for respective directives

* update csp in other webviews
  • Loading branch information
ParkourKarthik authored and shanalikhan committed Sep 2, 2019
1 parent 8902a74 commit 8c9a534
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ui/gist-selection/gist-selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta
http-equiv="Content-Security-Policy"
content="default-src vscode-resource:; script-src 'unsafe-inline' vscode-resource:; style-src 'unsafe-inline' vscode-resource:;"
/>
<link
rel="stylesheet"
href="@PWD/ui/shared/vendor/bootstrap/css/bootstrap.min.css"
Expand Down
4 changes: 4 additions & 0 deletions ui/landing-page/landing-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta
http-equiv="Content-Security-Policy"
content="default-src vscode-resource:; script-src 'unsafe-inline' vscode-resource:; style-src 'unsafe-inline' vscode-resource:; img-src data: vscode-resource:;"
/>
<link
rel="stylesheet"
href="@PWD/ui/shared/vendor/bootstrap/css/bootstrap.min.css"
Expand Down
5 changes: 4 additions & 1 deletion ui/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>

<meta
http-equiv="Content-Security-Policy"
content="default-src vscode-resource:; script-src 'unsafe-inline' vscode-resource:; style-src 'unsafe-inline' vscode-resource:; img-src data: vscode-resource:;"
/>
<link
rel="stylesheet"
href="@PWD/ui/shared/vendor/bootstrap/css/bootstrap.min.css"
Expand Down

0 comments on commit 8c9a534

Please sign in to comment.