admin管理员组文章数量:1405987
document.referrer in javascript is blank from a 302 redirect from http to https using a F5 load balancer in Firefox and Chrome, but shows up in IE. Is there a reason for this or a way around to detect the referrer?
document.referrer in javascript is blank from a 302 redirect from http to https using a F5 load balancer in Firefox and Chrome, but shows up in IE. Is there a reason for this or a way around to detect the referrer?
Share Improve this question asked Jun 28, 2012 at 22:20 Mike FlynnMike Flynn 24.3k59 gold badges197 silver badges369 bronze badges 2- 1 Don't rely on REFERER. It was a terrible idea that should never have been perpetuated. If you need to keep track of history, do it explicitly with a URL query parameter. – Pointy Commented Jun 28, 2012 at 22:36
-
Are you going from a page served over
https://
to anhttp://
link which redirects tohttps://
automatically? – Bruno Commented Jun 29, 2012 at 0:00
1 Answer
Reset to default 8It's a security feature when redirecting/linking cross-protocol sites.
There is never a way to detect the correct referrer, because clients can easily spoof or disable them.
本文标签: javascriptdocumentreferrer is blank in firefox and chrome on SSL redirectStack Overflow
版权声明:本文标题:javascript - document.referrer is blank in firefox and chrome on SSL redirect - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744337574a2601280.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论