Skip to content

Commit

Permalink
fix: allow YouTube embed in CSP
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cao <[email protected]>
  • Loading branch information
ryanccn committed Dec 3, 2023
1 parent e13634d commit a504780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const csp = `
script-src 'self' umami.ryanccn.dev 'unsafe-inline' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
img-src * blob: data:;
child-src 'none';
child-src 'none' youtube-nocookie.com;
media-src 'none';
font-src 'self';
connect-src *;
Expand Down

0 comments on commit a504780

Please sign in to comment.