Home  >  Article  >  Web Front-end  >  “https”为什么不能加载外部的js""_html/css_WEB-ITnose

“https”为什么不能加载外部的js""_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:38:501295browse

http://res.wx.qq.com/open/js/jweixin-1.0.0.js

“https”为什么不能加载外部的js"",提示“Mixed Content: The page at 'https://m.phzc.com/product/detail?id=5' was loaded over HTTPS, but requested an insecure script 'http://res.wx.qq.com/open/js/jweixin-1.0.0.js'. This request has been blocked; the content must be served over HTTPS.”这是为什么???


回复讨论(解决方案)

因为你加载了外部js,就被判断为不安全的了。

建议能直接复制远程的js,就复制下来吧。

外界js可以避免更新。  但是 会被https判断为不安全的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn