Skip to content

Commit 3f53979

Browse files
committed
fix: add unsafe-eval to CSP for cap-widget WebAssembly support
1 parent 6310d3b commit 3f53979

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ app.use(helmet({
3434
contentSecurityPolicy: {
3535
directives: {
3636
defaultSrc: ["'self'"],
37-
scriptSrc: ["'self'", "'unsafe-inline'", "https://cdn.jsdelivr.net"],
37+
scriptSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'", "https://cdn.jsdelivr.net"],
3838
scriptSrcAttr: ["'unsafe-inline'"],
3939
styleSrc: ["'self'", "'unsafe-inline'", "https://fonts.googleapis.com", "https://cdn.jsdelivr.net"],
4040
fontSrc: ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net"],

0 commit comments

Comments
 (0)