報跨域錯誤:Access to XMLHttpRequest at 'http://localhost:9990/' from origin 'http://IP:Port' has been blocked by CORS policy...more-private address space `local`


網上的錯誤:谷歌瀏覽器遇到CORS錯誤 提示:Access to XMLHttpRequest at 'http://localhost:9990/' from origin 'http://xxx.xx' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.  升級了最新的谷歌瀏覽器出現了錯誤

自己的錯誤:在患者全息視圖中打開電子病歷調閱和PACS影響查看,從醫院一個服務器程序上訪問localhost:9990 本地程序,報跨域錯誤,提示請求客戶端不是安全上下文,資源位於更私有的“本地”地址空間中,不能訪問local

 

 

原因:因為谷歌瀏覽器升級了,是谷歌瀏覽器又增加了訪問限制導致的,應該是前幾個月開始更新的, 解決方案就是使用https

解決:

步驟1: 谷歌瀏覽器 打開 chrome://flags/#block-insecure-private-network-requests
步驟2 : 找到 Block insecure private network requests. 設置為Disabled
步驟3 : 關閉谷歌瀏覽器重新打開網頁 解決問題。

或者 訪問使用https 的代替http的

 

設置完成之后可能會彈出relauch  點擊一下   重新加載一下谷歌瀏覽器

再次去程序中點擊患者全息視圖中的電子病歷調閱和PACS影像查看,就可以彈出來了

 參考鏈接:https://bbs.csdn.net/topics/601183131

原始參考鏈接:https://stackoverflow.com/questions/66534759/chrome-cors-error-on-request-to-localhost-dev-server-from-remote-site   在最后面

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Access to XMLHttpRequest at has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.問題的解決 解決[origin 'http://xxx.xxx.com:xxxx' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.] Access to XMLHttpRequest at 'http://localhost:8090/user/getotp' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. VUE 出現Access to XMLHttpRequest at 'http://192.168.88.228/login/Login?phone=19939306484&password=111' from origin 'http://localhost:8080' has been blocked by CORS policy: The value of the 'Access-Contr Access to XMLHttpRequest at '…' from origin '…' has been blocked by CORS policy axios 訪問本地文件 報跨域錯誤 from origin 'null' has been blocked by CORS policy VUE里面調用高德地圖出現跨域和Access to XMLHttpRequest at 'https://restapi.amap.com/v3/geocode/regeo?xx' from origin 'http://xxxx:8080' has been blocked by CORS policy: The value of the 'Access-Contr Access to XMLHttpRequest at 'XXX' from origin 'XX' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present o AJAX跨域請求解決方法 【跨域問題】Access to XMLHttpRequest at ‘A’from ‘B’has been blocked by CORS policy :... No ‘Access-Control-Allow-Origin’ header...(Chrome瀏覽器) 解決前端跨域的問題.Access to XMLHttpRequest at http://xxx.xxx from origin 'http://localhost:8000' has been bl
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM