Skip to content

Commit

Permalink
Merge pull request #4131 from cdr/jsjoeio-fix-csp
Browse files Browse the repository at this point in the history
fix(lib/vscode): update csp in webview to allow ports
  • Loading branch information
jsjoeio committed Sep 10, 2021
2 parents 82ae47e + 592d9bc commit bc3acb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/vscode/src/vs/workbench/api/common/shared/webview.ts
Expand Up @@ -24,7 +24,10 @@ export const webviewResourceBaseHost = 'vscode-webview.net';

export const webviewRootResourceAuthority = `vscode-resource.${webviewResourceBaseHost}`;

export const webviewGenericCspSource = `https://*.${webviewResourceBaseHost}`;
// NOTE@coder: This is a temporary change to include ":*"
// due to the patch we had to make for webview resources.
// See PR#3895 and https://github.com/cdr/code-server/issues/3936 for more details.
export const webviewGenericCspSource = `https://*.${webviewResourceBaseHost}:*`;

/**
* Construct a uri that can load resources inside a webview
Expand Down

0 comments on commit bc3acb0

Please sign in to comment.