javascript 如何禁用“您只想查看安全传送的网页内容”警告?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8636194/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable "do you want to view only the webpage content that was delivered securely" warning?
提问by Kapil Kshirsagar
My website has complete https and its using outer jquery resource which is http.
我的网站有完整的 https 及其使用的外部 jquery 资源,即 http。
In IE 8, when I'm redirecting the site it giving me "do you want to view only the webpage content that was delivered securely" warning How to avoid this?
在 IE 8 中,当我重定向网站时,它给我“您是否只想查看安全传送的网页内容”警告如何避免这种情况?
Is there any script available which solve this problem?
有没有解决这个问题的脚本?
Thanks in Advance.
提前致谢。
采纳答案by Kapil Kshirsagar
We cannot bypass the security alert using any javascript or jquery, because it is concern to security.
我们不能使用任何 javascript 或 jquery 绕过安全警报,因为它涉及安全性。
回答by dhochee
There seem to be two possible problem areas and your post doesn't make clear which is the issue:
似乎有两个可能的问题区域,您的帖子没有说明问题所在:
- You are referencing a jquery script file hosted on another site which is not secure.
- 您正在引用托管在另一个不安全站点上的 jquery 脚本文件。
As JamWaffles said, you should simply host a copy of the jquery file on your own site so it can be accessed using https. See this answer for details: https://stackoverflow.com/a/1458356/773798
正如 JamWaffles 所说,您应该简单地在自己的站点上托管 jquery 文件的副本,以便可以使用 https 访问它。有关详细信息,请参阅此答案:https: //stackoverflow.com/a/1458356/773798
Or ...
或者 ...
- You are redirecting from a secure to an unsecure site.
- 您正在从安全站点重定向到不安全站点。
I don't think this is what's causing the problem, because it will generate a different message, but for details on how to redirect from a secure to an unsecure page, see this answer: https://stackoverflow.com/a/3784676/773798
我不认为这是导致问题的原因,因为它会生成不同的消息,但有关如何从安全页面重定向到不安全页面的详细信息,请参阅此答案:https: //stackoverflow.com/a/3784676 /773798
回答by RajeshKdev
Check and Change your Internet options In IE.
在 IE 中检查并更改您的 Internet 选项。
How ever u needed change like that.First Use Google it will be better.
你怎么需要这样的改变。首先使用谷歌它会更好。
http://blogs.msdn.com/b/ieinternals/archive/2009/06/22/9797918.aspx
http://blogs.msdn.com/b/ieinternals/archive/2009/06/22/9797918.aspx
Hope this may helpful...
希望这可能会有所帮助...
回答by Murtaza
it is a setting on Internet Options - Advance , once u uncheck "Warn if changing between secure and unsecure mode." u wont get the message.
这是 Internet 选项 - 高级上的设置,一旦您取消选中“在安全和不安全模式之间切换时发出警告”。你不会收到消息。
回答by ThmHarsh
回答by xameeramir
This may not be usefulfor you but to your website userswill benefit from it:
这可能对您没有用,但对您的网站用户会从中受益:
Disabling "Do you want to view only the webpage content that was delivered securely?"in IE 8
禁用“您是否只想查看安全传送的网页内容?” 在IE 8
Follow the steps as shown:
按照如图所示的步骤操作:
Go to Tools-> Internet options
转到工具-> Internet 选项
Go to Security tab-> Internet-> Custom level
转到安全选项卡-> Internet->自定义级别
In the Security settings pop up enable Display mixed content
在安全设置弹出启用显示混合内容
Repeat these steps for Local intranetand Trusted sitessections
对本地 Intranet和受信任站点部分重复这些步骤