【发布时间】:2013-01-05 22:09:12
【问题描述】:
可能重复:
When a page delivers secure and non-secure items over https, are the secure items compromised?
如果您像这样从 google ajax 网站加载 jquery:
<script type="text/javascript" src="http//ajax.googleapis.com/ajax/libs/jquery/1.x.x/jquery.min.js"></script>
在 https 页面上,在某些浏览器中会显示该页面不安全。
我已经将它固定为这样加载:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
而且效果很好。
我的问题是,该网站是否会因为非 https 脚本的不当加载而被黑客入侵?
【问题讨论】:
-
我只是在看这个,但这是一个特殊情况,因为我的非安全项目是从谷歌服务器加载的。不知道它是否有所作为!
-
从哪个服务器加载资源并不重要。所以,是的,骗子。
-
是什么让 Google 的服务器与众不同?