开发者

Is there referrer header while using SSL?

开发者 https://www.devze.com 2023-04-10 13:43 出处:网络
Is there referrer header wi开发者_运维技巧thin domain while using SSL? If a website is accessed from a HTTP Secure (HTTPS) connection and a

Is there referrer header wi开发者_运维技巧thin domain while using SSL?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消