谷歌 Access to XMLHttpRequest at ‘请求网站’ from origin ‘请求来源’ has been blocked by CORS policy: The reques

谷歌 Access to XMLHttpRequest at ‘请求网站’ 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”

重启浏览器,就解决跨域了

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/36cbe25a0f.html