我们已经为我们的网站部署了一个新的SSL证书。我们已经注意到,如果' https‘是前缀的,则动态网页没有加载(来自mysql db的数据),同时如果我们打开没有https的网页,则页面正在正确加载(来自mysql db的数据正在被提取和显示)。
With 'https'
https://somedomain.com/display.php?pageid=9
Without 'https' (plain http)
http://somedomain/display.php?pageid=9
有什么问题吗?
发布于 2014-03-05 14:49:34
问题是,jquery库无法加载,因为它使用的是http而不是https,因此您的客户端代码都无法工作。
来自萤火虫:
Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"
您应该使用https加载jquery,如下所示:
https://ajax.googleapis.com/ajax/libs/jquery/1.4.3
或者像这样:
//ajax.googleapis.com/ajax/libs/jquery/1.4.3
并且取决于它访问的页面是什么协议,它将通过http或https加载库。
通常,一旦切换到https,您应该在https上加载所有脚本,否则它们将被视为安全漏洞而被阻止。
您可以在这里了解更多信息:Why am I suddenly getting a "Blocked loading mixed active content" issue in Firefox?
https://stackoverflow.com/questions/22200965
复制相似问题