Skip to content

Commit bc3acb0

Browse files
authored
Merge pull request #4131 from cdr/jsjoeio-fix-csp
fix(lib/vscode): update csp in webview to allow ports
2 parents 82ae47e + 592d9bc commit bc3acb0

File tree

1 file changed

+4
-1
lines changed
  • lib/vscode/src/vs/workbench/api/common/shared

1 file changed

+4
-1
lines changed

lib/vscode/src/vs/workbench/api/common/shared/webview.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export const webviewResourceBaseHost = 'vscode-webview.net';
2424

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

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

2932
/**
3033
* Construct a uri that can load resources inside a webview

0 commit comments

Comments
 (0)