浏览器https ,接口http报错问题

时间:2024-03-13 16:33:26

报错:

浏览器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.

解决办法:点击链接上路径的不安全--》网站设置--》不安全内容改为允许。