-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a nonce for CSP policy enforcement #52
Comments
CSP more than a nonce for this. One, you'd have to update your CSP rules for img-src and frame-src (otherwise things will block and youtube's iframe will not load):
And example of such action is here: https://github.com/justinribeiro/blog-pwa/blob/main/appengine/main.py#L45 In terms of a
This assumes several things of course; that the file is not part of a bigger build, that you're not simply using How are you importing the lite-youtube? From the CDN or in your build, or somewhere local? |
I add I also added: But it is complaining about |
Ahhh, yes, the style-src issue. That's my bad; I forget that'll throw because of the shadowDom inject, better known as the old 627 issue WICG/webcomponents#627. Your original question makes a lot more sense to me know. :-) What you likely want to do is use |
Is there a way I can add a nonce to the short-code that would work for CSP?
The text was updated successfully, but these errors were encountered: