Skip to content

Commit

Permalink
Fix csp header for svgs in firefox. Fixes #869 (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Nov 22, 2022
1 parent 56c79bd commit a6c0643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (!process.env["LEMMY_UI_DISABLE_CSP"] && !process.env["LEMMY_UI_DEBUG"]) {
server.use(function (_req, res, next) {
res.setHeader(
"Content-Security-Policy",
`default-src 'none'; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *`
`default-src 'self'; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *`
);
next();
});
Expand Down

0 comments on commit a6c0643

Please sign in to comment.