谷歌瀏覽器關閉跨域限制

谷歌瀏覽器關閉跨域限制

報錯:

Access to XMLHttpRequest at 'http://10.1.1.1:8080/web-api/login' from origin 'http://xxx.com' 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

按照下圖將Block insecure private network requests.項的Default改爲Disabled即可。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章