I have a domain lets say www.domain.com which i am redirecting to www.whatismyreferer.com to check referer. When i redirect page using PHP headers it shows No referer / hidden in result. I want to set referer as www.domain.com on whatismyrefer.com
Here is my code on the index.php file of www.domain.com:
<?php
header("Referrer-Policy: origin");
header("Location: https://www.whatismyreferer.com",true, 302);
?>
I have also tried referrer-policy: unsafe-url but still gets no referer
But if i use:
<meta name="referrer" content="origin">
<meta http-equiv="refresh" content="0;https://www.whatismyreferer.com">
then it shows referrer. I dont want to do it with meta tags, i want to do it with header location