Refused to load the script because it violates the following Content Security Policy directive: "scr

简介: 版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/80441748 ...
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/80441748

Refused to load the script because it violates the following Content Security Policy directive: "script-src 'self'


最近在使用Chrome 54 版本编辑微信订阅号素材的时候,发现很多图片之类 的资源显示不出来,新浪微博个人中心主页也是完全没有样式了,根本没办法用了,搜索了一下Content Security Policy 相关的,都是对其本身的介绍,参考:https://content-security-policy.com/

,还有就是在开发的时候如何使用,但却没有人说在浏览别人的网站 的时候遇到这种问题怎么办。

由于我用的Chrome 是很久之前安装的,很久没有用过了,最近使用的时候 就遇到 了这个问题。那么想到的最直接的办法就是升级更新,果然,更新之后问题就消失了。

但按照上面给出的参考网址很低的版本就开始支持了,然而我遇到的问题说明根本不行。

目录
相关文章
|
4月前
|
JavaScript
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
119 0
|
4月前
|
Java Spring
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings.
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings.
275 0
|
11月前
|
Web App开发 JavaScript 前端开发
Selenium使用中报错:We\'re sorry but hr-frontend-v2 doesn\'t work properly without JavaScript enabled
Selenium使用中报错:We\'re sorry but hr-frontend-v2 doesn\'t work properly without JavaScript enabled. Please enable it to continue 这个错误提示表明目标网页要求启用JavaScript才能正常工作,而默认情况下,Selenium WebDriver是启用JavaScript的。如果遇到此错误,请按照以下步骤尝试解决问题
324 0
Selenium使用中报错:We\'re sorry but hr-frontend-v2 doesn\'t work properly without JavaScript enabled
|
索引
Resource temporarily unavailable, will not index. Try --rotate option.
Resource temporarily unavailable, will not index. Try --rotate option.
129 1
|
Web App开发 JavaScript 安全
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
180 0
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
jinja2: Can't perform this operation for unregistered loader type
jinja2: Can't perform this operation for unregistered loader type
|
应用服务中间件 Android开发
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
106 0
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
No injector for custom defined data type的解决办法
No injector for custom defined data type的解决办法
224 0
No injector for custom defined data type的解决办法
How to resolve warning message Access restriction -The type Resource is not accessible
How to resolve warning message Access restriction -The type Resource is not accessible
116 0
How to resolve warning message Access restriction -The type Resource is not accessible