-
-
Save Kaiderella/6a6366f58052083786eac38ce1ef9549 to your computer and use it in GitHub Desktop.
Add referrer policy to http headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('send_headers', function(){ | |
header("Referrer-Policy: no-referrer-when-downgrade"); | |
}, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment