CORS跨域問(wèn)題:
升級(jí)谷歌瀏覽器最新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.

v2-817a18249df779145eda3b96862436e4_r.png
解決辦法:
打開(kāi)瀏覽器,復(fù)制
chrome://flags/到瀏覽器地址欄搜索
Block insecure private network requests,將設(shè)置為Disabled,然后Relaunch就好了。
微信圖片_20230116113125.png