如何防止Internet Explorer中的安全警告? [英] how to prevent the security warning in Internet Explorer?

查看:718
本文介绍了如何防止Internet Explorer中的安全警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在rails网站上有一个ruby,安装了SSL安全证书。我在其他浏览器(例如Chrome或Firefox)中没有出现任何安全警告,但我在IE中获得了这个警告。

I have a ruby on rails website with a security certificate installed for SSL. I don't get any kind of security warnings in other browsers such as Chrome or Firefox, but I get this in IE

这是屏幕截图:

Here's a screenshot:

如果我选择否一切正常显示,CSS文件正确访问。但是我怎么能防止这一点突然出现呢?我使用StartSSL的证书和CSS文件是非安全的一部分,如果这有帮助。

If I select "No", everything displays just fine and the CSS files are accessed correctly. But how I can prevent this from popping up completely? I used StartSSL for the cert and the CSS files are part of non-secure if that helps.

推荐答案

在您网页的某处,您指定的文件的网址开头 http:// ,其中主页的网址以 https:// 开头。

Somewhere in your page, you are specifying a file with a URL that starts http://, where the URL for the main page starts with https://.

https 适用于安全网站,但在同一网页上具有任何非 https 内容会危及该安全性。这是IE警告你的。

https is intended for secure sites, but having any non https content on the same page compromises that security. This is what IE is warning you about.

您需要确保页面中的所有元素都通过 https:// URL。

You need to ensure that all elements in the page are downloaded via a https:// URL.

如果您不确定使用错误的协议下载哪些文件,可以使用IE的Dev Tools窗口查看页面流量。通过按F12打开开发工具,然后加载页面(对安全问题回答是,以确保一切都已下载)。你应该能够看到所有加载的文件打开页面,并应该能够看到通过 http:// 加载哪个文件而不是 https://

If you're not sure which files are being downloaded with the wrong protocol, you could use IE's Dev Tools window to view the page traffic. Open the Dev Tools by pressing F12, then load the page (answer 'Yes' to the security question so you can be sure everything is downloaded). You should be able to see all the files that were loaded to open the page, and should be able to see from that which one(s) are loaded via http:// instead of https://. Those are the ones you need to fix.

希望有助于

这篇关于如何防止Internet Explorer中的安全警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆