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月前
|
Java Spring
成功解决Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings
这篇文章提供了解决Spring Initializr网站初始化失败问题的方法,包括检查URL、网络和代理设置。
成功解决Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings
|
4月前
|
API
【API Management】使用 APIM Inbound Policy 来修改Content‐Type Header的值
【API Management】使用 APIM Inbound Policy 来修改Content‐Type Header的值
【API Management】使用 APIM Inbound Policy 来修改Content‐Type Header的值
|
4月前
webpack——You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
webpack——You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
532 0
|
5月前
|
JavaScript 前端开发
We‘re sorry but xxxxxx doesn‘t work properly without JavaScript enabled.
We‘re sorry but xxxxxx doesn‘t work properly without JavaScript enabled.
Error:express-session deprecated undefined resave option; provide resave option app.js:17:10
Error:express-session deprecated undefined resave option; provide resave option app.js:17:10
Error:express-session deprecated undefined resave option; provide resave option app.js:17:10
|
7月前
|
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.
1062 0
|
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的。如果遇到此错误,请按照以下步骤尝试解决问题
749 0
Selenium使用中报错:We\'re sorry but hr-frontend-v2 doesn\'t work properly without JavaScript enabled
|
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解决办法
3553 1
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
|
数据库
loading local data is disabled; this must be enabled on both the client and server sides
loading local data is disabled; this must be enabled on both the client and server sides
184 0