Skip to content

Commit

Permalink
CSP: allow blob as worker-src (#173142)
Browse files Browse the repository at this point in the history
fixes #173104
  • Loading branch information
jrieken committed Feb 2, 2023
1 parent bf3e759 commit 86b34fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/server/node/webClientServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class WebClientServer {
`script-src 'self' 'unsafe-eval' ${this._getScriptCspHashes(data).join(' ')} 'sha256-fh3TwPMflhsEIpR8g1OYTIMVWhXTLcjQ9kh2tIpmv54=' http://${remoteAuthority};`, // the sha is the same as in src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html
'child-src \'self\';',
`frame-src 'self' https://*.vscode-cdn.net data:;`,
'worker-src \'self\' data:;',
'worker-src \'self\' data: blob:;',
'style-src \'self\' \'unsafe-inline\';',
'connect-src \'self\' ws: wss: https:;',
'font-src \'self\' blob:;',
Expand Down

0 comments on commit 86b34fd

Please sign in to comment.