【发布时间】:2017-03-12 07:00:03
【问题描述】:
我最近使用了一种方法在我的基于 codeigniter 的 Web 应用程序上强制使用 SSL。我完全按照这里所说的做了http://tutsnare.com/redirect-to-ssl-in-codeigniter/ 它完成了这项工作。所有页面都以带有锁定标志的 HTTPS 加载。但是在控制台上我收到了这个错误
Mixed Content: The page at 'https://dev26.calvarycch.org/applications/index/children' was loaded over HTTPS, but requested an insecure script 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js'. This request has been blocked; the content must be served over HTTPS.
这是什么意思?以及如何删除它?
【问题讨论】:
-
只使用没有方案但以双斜杠开头的链接,如
//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js,你会没事的。
标签: php codeigniter ssl https