Skip to content
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

webpacker breaks style-src CSP #2732

Closed
birthdaycorp opened this issue Sep 18, 2020 · 0 comments
Closed

webpacker breaks style-src CSP #2732

birthdaycorp opened this issue Sep 18, 2020 · 0 comments

Comments

@birthdaycorp
Copy link

birthdaycorp commented Sep 18, 2020

I just installed Webpacker on Rails 5.2.4 app, and get this CSP violation notice in my browser console:

Content Security Policy: The page’s settings observed the loading of a resource at inline (“style-src”). A CSP report is being sent. injectStylesIntoStyleTag.js:117
Content Security Policy: The page’s settings observed the loading of a resource at inline (“style-src”). A CSP report is being sent. injectStylesIntoStyleTag.js:190

This comes from the style-loader. A similar ticket was made to track issues relating to webpacker and CSP, but this issue relating to inserted styles is not mentioned. Curious if anyone else has come across this? If so - how did you hash it?

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

No branches or pull requests

3 participants