add support for responsive youtube embeds in posts
This commit is contained in:
parent
38247187ee
commit
7121a3d58b
6 changed files with 47 additions and 12 deletions
|
@ -5,13 +5,13 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|||
// You might need to insert additional domains in script-src if you are using external services
|
||||
const ContentSecurityPolicy = `
|
||||
default-src 'self';
|
||||
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app;
|
||||
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app youtube.com www.youtube.com s.ytimg.com;
|
||||
style-src 'self' 'unsafe-inline';
|
||||
img-src * blob: data:;
|
||||
media-src 'none';
|
||||
connect-src *;
|
||||
font-src 'self';
|
||||
frame-src giscus.app
|
||||
frame-src giscus.app youtube.com www.youtube.com s.ytimg.com
|
||||
`
|
||||
|
||||
const securityHeaders = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue