Can you at least get the domain of the https referer?

前端 未结 2 1496
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 07:50

I\'ve noticed that if a foreign https: site links to my non-https site, that I don\'t get anything in the HTTP Referer header at all. I\'ve experienced this with <

2条回答
  •  有刺的猬
    2021-01-27 08:30

    To get the document.referrer, You can use either of the options below:

    1. You Need to convert your HTTP site to HTTPS.

    2. Or you can add the below simple meta tag in your HTTPS site.

提交回复
热议问题