CORS跨域問題:
升級谷歌瀏覽器最新chrome94版本后唤殴,提示Access to XMLHttpRequest at http://localhost:xxxx/api
from origin http://xxx.xxx.com:xxx
has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local
.
解決辦法:
打開瀏覽器,復(fù)制
chrome://flags/
到瀏覽器地址欄搜索
Block insecure private network requests
役衡,將設(shè)置為Disabled
襟己,然后Relaunch
就好了包归。