日常踩坑

vendor.c200ed2223d6108084d3.js:33 Mixed Content: The page at ‘https://xxxxxxxxx’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://xxxxxxxxx’. This request has been blocked; the content must be served over HTTPS.

日常踩坑_第1张图片
今天开发时偶然遇到了这个错误
用的是百度云的服务器,443端口,页面通过https访问,里面的接口还是http的,就会出现这个错误,解决办法就是把接口换成https的或者页面不通过https访问
我老大给了我一个新服务器,让我用http访问页面,解决了!

你可能感兴趣的:(开发,javascript)