How to add in apache referrer policy header

apache-2.4http-headers

I'm not sure how can I add referrer policy header to my virtual host configuration file.

Let's say that I want to add something like this Referrer-Header: same-origin, should it be in this way:

Header set Referrer-Header: same-origin

Best Answer

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"