Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created November 2, 2018 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaiderella/6a6366f58052083786eac38ce1ef9549 to your computer and use it in GitHub Desktop.
Save Kaiderella/6a6366f58052083786eac38ce1ef9549 to your computer and use it in GitHub Desktop.
Add referrer policy to http headers
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