Skip to content

Instantly share code, notes, and snippets.

@robinraju
Forked from jacobovidal/.htaccess
Created October 10, 2018 09:34
Show Gist options
  • Save robinraju/c9a01b9994cbc16e0e1082cd15fa9bc6 to your computer and use it in GitHub Desktop.
Save robinraju/c9a01b9994cbc16e0e1082cd15fa9bc6 to your computer and use it in GitHub Desktop.
Upgrade Insecure Requests via .htaccess or meta tag to prevent mixed content
<ifModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment