https 与http 的坑

网页报这种错误: (blocked:mixed-content)

使用了https就不能夹生http

 
 
 
jquery.min.js:4 Mixed Content: The page at 'https://res.xxx.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://app.api.xxx.com'. This request has been blocked; the content must be served over HTTPS.
 
jquery.min.js:4 XMLHttpRequest cannot load http://app.api.xxx.com. Failed to start loading.
原文地址:https://www.cnblogs.com/studyNT/p/6224872.html