You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I modify CSP configuration to allow YouTube iframes?
When using the https://github.com/gfscott/eleventy-plugin-youtube-embed plugin I'm getting an error in console: Refused to frame 'https://www.youtube-nocookie.com/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
If I try to use the share functionality from inside YouTube with it's generated markup I have the same error: Refused to frame 'https://www.youtube.com/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
Hi, I have an embedded video in my blog posts ....they were a few changes I had to do so that Lighthouse performance audit is also not adversely effected.
How can I modify CSP configuration to allow YouTube iframes?
When using the https://github.com/gfscott/eleventy-plugin-youtube-embed plugin I'm getting an error in console:
Refused to frame 'https://www.youtube-nocookie.com/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
And the plugin generates this markup:
If I try to use the share functionality from inside YouTube with it's generated markup I have the same error:
Refused to frame 'https://www.youtube.com/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
The text was updated successfully, but these errors were encountered: