新手问题 request.referrer 获取上级 URL 失败

jiuxueliang · September 01, 2017 · Last by jiuxueliang replied at September 05, 2017 · 1498 hits

我用 request.referrer 获取百度跳转过来的 URL 是可以的,但是获取不到搜狗的,获取谷歌只能获取https://www.google.com.hk,后面的地址和参数获取不了。请问有人知道什么原因吗?可以解决么?

Reply to hooopo

谢谢了,不过还是不太明白。百度也是 https 啊,为什么可以获取到。

Reply to jiuxueliang

帖子上不是已经说了么,设置了 meta:

<meta content="always" name="referrer">
Reply to hooopo

谢谢了,帖子里真没有,不过我百度了一下,明白了。

You need to Sign in before reply, if you don't have an account, please Sign up first.