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*.Access to CSS stylesheet at ‘http://xxx‘ from origin ‘http://xxx‘ has been blocked by CORS policy_第1张图片

 排查:

使用Microsoft Edge浏览器可以访问正常网站,那就是Google Chrome浏览器的问题了

解决办法

如果是Google Chrome浏览器,需要使用https协议访问网站

你可能感兴趣的:(CORS,secure,policy,more-private,origin)