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

CSP + .kint d(foo) #1174

Closed
nowackipawel opened this issue Aug 22, 2018 · 1 comment
Closed

CSP + .kint d(foo) #1174

nowackipawel opened this issue Aug 22, 2018 · 1 comment

Comments

@nowackipawel
Copy link
Contributor

nowackipawel commented Aug 22, 2018

When I am trying to print some data using d(foo) and I've got CSP enabled in the same time then there is no css loaded cuz of CSP rules:
I guess this is related to .kint

Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: void 0===window.kintRich&&(window.kintRi.... index:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“style-src”). Source: .kint-rich{font-size:13px;overflow-x:aut.... index:3

Logs from FF console.

@lonnieezell
Copy link
Member

Nothing we can do here. Kint's a third-party library so we can't change the way it outputs stuff.

Personally, I recommend not using CSP in development, except to run some tests to make sure it's working correctly. Otherwise - it causes issues like this. :)

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