how to prevent the security warning in Internet Explorer?

混江龙づ霸主 提交于 2019-12-02 18:43:02

问题


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:

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.


回答1:


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 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.

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

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.

Hope that helps



来源:https://stackoverflow.com/questions/15693085/how-to-prevent-the-security-warning-in-internet-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!