Skip to content

Commit c4f5427

Browse files
committed
Update CSP hashes
1 parent bd68646 commit c4f5427

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

patches/webview.diff

+1-10
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
6262
_wrapWebWorkerExtHostInIframe,
6363
developmentOptions: { enableSmokeTestDriver: this._environmentService.args['enable-smoke-test-driver'] ? true : undefined, logLevel: this._logService.getLevel() },
6464
settingsSyncOptions: !this._environmentService.isBuilt && this._environmentService.args['enable-sync'] ? { enabled: true } : undefined,
65-
@@ -385,7 +386,7 @@ export class WebClientServer {
66-
return void res.end('Not found');
67-
}
68-
69-
- const webWorkerExtensionHostIframeScriptSHA = 'sha256-2Q+j4hfT09+1+imS46J2YlkCtHWQt0/BE79PXjJ0ZJ8=';
70-
+ const webWorkerExtensionHostIframeScriptSHA = 'sha256-3Q+j4hfT09+1+imS46J2YlkCtHWQt0/BE79PXjJ0ZJ8=';
71-
72-
const cspDirectives = [
73-
'default-src \'self\';',
7465
Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html
7566
===================================================================
7667
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html
@@ -123,7 +114,7 @@ Index: code-server/lib/vscode/src/vs/workbench/services/extensions/worker/webWor
123114
default-src 'none';
124115
child-src 'self' data: blob:;
125116
- script-src 'self' 'unsafe-eval' 'sha256-xM2KVDKIoeb8vVxk4ezEUsxdTZh5wFnKO3YmFhy9tkk=' https: http://localhost:* blob:;
126-
+ script-src 'self' 'unsafe-eval' 'sha256-yM2KVDKIoeb8vVxk4ezEUsxdTZh5wFnKO3YmFhy9tkk=' https: http://localhost:* blob:;
117+
+ script-src 'self' 'unsafe-eval' 'sha256-6eZXxikxkENULU0EOkVQSd4hglGixLg3Aow9psZ6u2Y=' https: http://localhost:* blob:;
127118
connect-src 'self' https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*;"/>
128119
</head>
129120
<body>

0 commit comments

Comments
 (0)