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

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 是很久之前安装的,很久没有用过了,最近使用的时候 就遇到 了这个问题。那么想到的最直接的办法就是升级更新,果然,更新之后问题就消失了。

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

猜你喜欢

转载自blog.csdn.net/testcs_dn/article/details/80441748