本文主要是介绍Access to CSS stylesheet at ‘http://xxx‘ from origin ‘http://xxx‘ has been blocked by CORS policy,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题重现:
Google Chrome浏览器访问网站报错:
Access to CSS stylesheet at 'http://xxx/theme/default/zh-cn.default.css?v=12.3.3'from origin 'http://xxx' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space 'private*.
排查:
使用Microsoft Edge浏览器可以访问正常网站,那就是Google Chrome浏览器的问题了
解决办法:
如果是Google Chrome浏览器,需要使用https协议访问网站
这篇关于Access to CSS stylesheet at ‘http://xxx‘ from origin ‘http://xxx‘ has been blocked by CORS policy的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!