chore: update csp (#2826)

This commit is contained in:
Mo
2024-02-02 10:59:58 -06:00
committed by GitHub
parent 19a515ee6e
commit 1c6b31f643
6 changed files with 7 additions and 65 deletions

View File

@@ -2,18 +2,14 @@
<html>
<head>
<meta charset="utf-8" />
<!--
We need to set 'unsafe-eval' to use wasm.
https://bugs.chromium.org/p/chromium/issues/detail?id=948834
-->
<meta
http-equiv="Content-Security-Policy"
content="
default-src 'self' blob:;
script-src 'self' 'unsafe-eval';
script-src 'self' 'wasm-unsafe-eval';
worker-src 'self' blob:;
connect-src * data: blob:;
style-src 'unsafe-inline' 'self' http://localhost:* http://127.0.0.1:45653;
style-src 'self' http://localhost:* http://127.0.0.1:45653;
frame-src * blob:;
img-src * data: blob:;
"