【发布时间】:2018-08-17 05:57:02
【问题描述】:
当我使用 https 访问我的网站时遇到问题。 jquery的CDN被屏蔽了。
这是控制台中发送的消息Mixed Content: The page at 'https://eoxys-esport.com/?here=home' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-3.3.1.min.js'. This request has been blocked; the content must be served over HTTPS.
当我在 http 时,该网站可以正常工作。
【问题讨论】:
-
加载
https://code.jquery.com/jquery-3.3.1.min.js -
预计当您使用任何使用
HTTPS的安全域时,对其他域的任何调用都将是安全调用,例如https,而不是HTTP。您只需将 jquerycdn协议更改为“https”就可以了 -
就是这样。好的,谢谢
标签: javascript jquery https