Skip to content

Helper.js triggering CSP for inline style #97

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

Closed
tbeenpwn opened this issue Sep 18, 2019 · 2 comments
Closed

Helper.js triggering CSP for inline style #97

tbeenpwn opened this issue Sep 18, 2019 · 2 comments

Comments

@tbeenpwn
Copy link

Hey phphe,

firstly thank you for developing this component. I use this embedded in an iFrame and the restoreAttr function in your helper triggers the CSP. Do you have any tip for this?

@phphe
Copy link
Owner

phphe commented Sep 18, 2019

Can you reproduce the issue? Actually, the Codepen demo is in iFrame and it works well. https://codepen.io/phphe/pen/KRapQm

@tbeenpwn
Copy link
Author

Yes, as CodePen allows inline styling. My error evolves around "style-src 'self'" being forbidden. I just figured setting the style via the .style will solve it. Time to fork this. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants