chrome CORS错误

chrome升级后,访问网站的js出现(http网站访问https的js):

From origin  has been blocked by CORS policy: The request  client is not a secure context and the resource is in more-private address space ‘private’

 

解决方案:

打开新的网页,浏览器输入:chrome://flags/#block-insecure-private-network-requests,改成Disabled,重启浏览器。

posted @ 2021-10-29 18:55  ellennet123  阅读(873)  评论(0)    收藏  举报