Skip to content

Commit

Permalink
add webview csp directives for web workers (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonynorth authored Nov 18, 2022
1 parent b276ed0 commit e7fcb1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ export async function getWebviewHtml(webview: Webview, file: string, title: stri
default-src https: data: filesystem:;
style-src https: data: filesystem: 'unsafe-inline';
script-src https: data: filesystem: 'unsafe-inline' 'unsafe-eval';
worker-src https: data: filesystem: blob:;
`;

return `
Expand Down

0 comments on commit e7fcb1d

Please sign in to comment.