Is there referrer header while using SSL?

此生再无相见时 提交于 2019-12-17 16:59:31

问题


Is there referrer header within domain while using SSL?


回答1:


If a website is accessed from a HTTP Secure (HTTPS) connection and a link points to anywhere except another secure location, then the referrer field is not sent.

The upcoming standard HTML5 will support the attribute/value rel = "noreferrer" in order to instruct the user agent not to send a referrer.

Source: http://en.wikipedia.org/wiki/HTTP_referrer

So it seems referrer is not within the domain, but within SSL.




回答2:


At least Chrome supports now a Meta Tag which explicitly allows to send the Referrer when going from HTTPS to HTTP. Just include the following line in the header:

<meta name="referrer" content="origin">

Here is more Information: http://wiki.whatwg.org/wiki/Meta_referrer



来源:https://stackoverflow.com/questions/7620328/is-there-referrer-header-while-using-ssl

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