Skip to content

Commit 84c0dd0

Browse files
committed
Add 'wasm-unsafe-eval' to CSP
1 parent 10d7c59 commit 84c0dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qwc2_viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def qwc2_index(self, identity, params, request_url):
211211
# Inject CSP header and modify script tags
212212
nonce = secrets.token_urlsafe()
213213
csp = "; ".join([
214-
"script-src 'nonce-%s' 'strict-dynamic'" % nonce,
214+
"script-src 'nonce-%s' 'strict-dynamic' 'wasm-unsafe-eval'" % nonce,
215215
# "style-src 'nonce-%s'" % nonce # TODO
216216
])
217217
if self.extra_csp_directives:

0 commit comments

Comments
 (0)