瀏覽器https ,接口http報錯問題

報錯:

網址index.umd.min.js?1c31:1 Mixed Content: The page at 'https://localhost:8081/h5/#/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://test.shop.daihuoduo.com/index.php?s=/api/passport/smscode'. This request has been blocked; the content must be served over HTTPS.

解決辦法:點擊鏈接上路徑的不安全--》網站設置--》不安全內容改爲允許。

 

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