Skip to content

Commit

Permalink
Fixing QR code CSP, try 2. Fixes #2241 (#2242)
Browse files Browse the repository at this point in the history
Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
  • Loading branch information
dessalines and SleeplessOne1917 authored Nov 28, 2023
1 parent aafcfaf commit 69a3a63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ export function setDefaultCsp({
`default-src 'self';
manifest-src *;
connect-src *;
img-src * data:;
img-src * data: blob:;
script-src 'self' 'nonce-${res.locals.cspNonce}';
style-src 'self' 'unsafe-inline';
form-action 'self';
base-uri 'self';
blob: 'self';
frame-src *;
media-src * data:`.replace(/\s+/g, " "),
);
Expand Down

0 comments on commit 69a3a63

Please sign in to comment.