Skip to content

Commit

Permalink
Add blob to default-src csp
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Apr 11, 2023
1 parent 2ee56bc commit 87e05ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ const helmet = require("helmet");
let helmetConfig = {
contentSecurityPolicy: {
directives: {
defaultSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'"],
defaultSrc: ["'self'", "blob:", "'unsafe-inline'", "'unsafe-eval'"],
imgSrc: ["*", "data:", "blob:", "'unsafe-inline'"],
styleSrc: ["*", "data:", "blob:", "'unsafe-inline'"],
fontSrc: ["*", "data:", "blob:", "'unsafe-inline'"],
Expand Down

0 comments on commit 87e05ea

Please sign in to comment.