为什么 jquery 在 https 中被阻止?

Myd*_*roX 3 javascript https jquery

当我使用 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 时工作。

Csa*_*aba 7

您需要从安全的 HTTPS 协议加载 jQuery 脚本。只需使用https://code.jquery.com/jquery-3.3.1.min.js,错误就会消失。干杯。