How can I add in apache referrer policy header?

Solution 1:

The header you're looking for is called Referrer-Policy, not "Referrer-Header".

As such, the correct way to set it would be:

Header always set Referrer-Policy "same-origin"

Solution 2:

Not sure what you are asking, or trying to accomplish here...

SAMEORIGIN is a value for the X-Frame-Options header.

To make Apache send this header to all your pages, you would need to add this directive to your site config file :

Header always append X-Frame-Options SAMEORIGIN

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

https://httpd.apache.org/docs/current/en/mod/mod_headers.html