如何让IE6在从https到http的跳转中不出安全提示
来源:互联网 发布:centos命令 编辑:程序博客网 时间:2024/06/06 03:53
如果你的产品有从https到http的跳转(在登录的时候经常遇到),遇上IE6的话,会弹出一个安全提示,提示你从正在跳入不安全的网页。这个虽然是合理的,但是对用户来说不是很爽。
网上搜了一下解决方案,其中有个家伙说使用303 See Other的话,可以避免这个问题,详细介绍请移步:http://stackoverflow.com/questions/651772/how-to-redirect-from-https-to-http-without-annoying-error-messages
经过尝试,证实这个方法不行,根据rfc2616介绍:
10.3.4 303 See Other
The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response MUST NOT be cached, but the response to the second (redirected) request might be cacheable.
The different URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
Note: Many pre-HTTP/1.1 user agents do not understand the 303 status. When interoperability with such clients is a concern, the 302 status code may be used instead, since most user agents react to a 302 response as described here for 303.
猜测浏览器可能都把303当做302处理的,似乎303只是为了在处理POST请求时跳转到其他resource用的。
最后嘛,不得不用土办法,一个是在js中跳转,一个是在meta中refresh:
- 如何让IE6在从https到http的跳转中不出安全提示
- 如何在安装SSL证书后强制Apache的http请求跳转到https
- 从HTTP到HTTPS
- 从 HTTP 到 HTTPS
- 从 HTTP 到 HTTPS
- IIS7如何实现访问HTTP跳转到HTTPS访问
- apache如何设置http自动跳转到https
- nginx http 跳转到https
- Apache从HTTP到HTTPS的实现
- NetScaler实现域名http到https的自动跳转
- Tomcat的设置HTTP页面自动跳转到HTTPS
- 在linux安装Nginx以从http升级到https
- 从HTTP到HTTPS再到HSTS的演化
- http登陆后跳转到https
- https 跳转到 http, referer获取
- https跳转到http session丢失问题
- https跳转到http session丢失问题
- https跳转到http session丢失问题
- Local Notifications
- 方兴未艾的社会计算
- 在win7-64bit环境下,boa-constructor 0.6.1 的palette面板中没有控件图标的解决方法
- 黑马程序员--端口问题/TCP传递对象/URL类
- 数字图像处理的定义
- 如何让IE6在从https到http的跳转中不出安全提示
- struts2中实现for语句循环输出树前的不同字数空格
- Redhat Linux 2.6.18下安装MySQL 5.1.7及Navicat 8
- 来自德芬的Blog-好书推荐
- Linux下安装JDK
- BSP包中各个文件的具体作用
- 动态顺序 线性表 的实现源码
- 关于 PostgreSQL 备份恢复的心得
- 为什么磁盘1次随机读需10ms