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

script-src-elem #5

Closed
jimixy opened this issue Apr 2, 2019 · 2 comments
Closed

script-src-elem #5

jimixy opened this issue Apr 2, 2019 · 2 comments

Comments

@jimixy
Copy link

jimixy commented Apr 2, 2019

Refused to load the script 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' *.xitu.io *.juejin.im *.baidu.com *.google-analytics.com *.meiqia.com dn-growing.qbox.me *.growingio.com *.guard.qcloud.com *.gtimg.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

@Dante-dan
Copy link

Dante-dan commented Apr 24, 2020

emmmm, Readme mention this
Q: $i fail to import resources
On some websites like GitHub, $i will fail to import resources. Console warning may be like follows:

Refused to load the stylesheet 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' assets-cdn.github.com".
It is because of strict Content Security Policy of these websites. For more information, see Content Security Policy (CSP) wiki

@pd4d10
Copy link
Owner

pd4d10 commented May 4, 2022

Yeah, it's due to the CSP of the website itself.

#3 (comment) mentioned a solution which use "Disable Content-Security-Policy" extension to disable it, but I think it may cause security issues.

@pd4d10 pd4d10 closed this as completed May 4, 2022
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

3 participants