Skip to content

Instantly share code, notes, and snippets.

@tejastank
Forked from jacobovidal/.htaccess
Created December 12, 2019 14:36
Show Gist options
  • Save tejastank/92e10445c9d62287da93fecdbb3c05dd to your computer and use it in GitHub Desktop.
Save tejastank/92e10445c9d62287da93fecdbb3c05dd 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">
@tejastank
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment