加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Rails request.referer无法在Internet Explore

发布时间:2020-12-17 02:37:28 所属栏目:百科 来源:网络整理
导读:我正在使用rails中的Spree电子商务并使用CAS进行单点登录. 使用cas登录后,我使用request.referer在上一页重定向它,但它不适用于Internet Explorer. 在Internet Explorer中,它将我重定向到我的应用程序的主页. 解决方法 IE在某些情况下不发送引用标头.微软有
我正在使用rails中的Spree电子商务并使用CAS进行单点登录.
使用cas登录后,我使用request.referer在上一页重定向它,但它不适用于Internet Explorer.
在Internet Explorer中,它将我重定向到我的应用程序的主页.

解决方法

IE在某些情况下不发送引用标头.微软有一个 support article,涵盖了这一点.

When linking from one document to another in Internet Explorer 4.0 and later,the Referer header will not be sent when the link is from an HTTPS page to a non-HTTPS page. The Referer header also will not be sent when the link is from a non-HTTP(S) protocol,such as file://,to another page.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读