Skip to content

Instantly share code, notes, and snippets.

@benhuson
Created September 14, 2016 11:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benhuson/baf0dc6e440e0175bb89508e73263da1 to your computer and use it in GitHub Desktop.
Save benhuson/baf0dc6e440e0175bb89508e73263da1 to your computer and use it in GitHub Desktop.
Disable HTTP Strict Transport Security (HSTS) in .htaccess
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=0; includeSubDomains; preload" env=HTTPS
</IfModule>
@WindowsAndLinux
Copy link

Hi there. Doesn't have any effect on Chrome / Chromium on Linux / 64 bit, any chance you've found a new method ?

@benhuson
Copy link
Author

Sorry, no 😞

@nniksa91
Copy link

Worked for me in Chrome perfectly
Fucked up my SSL cert got forced HSTS + redirects but now it works without redirects and forcing HSTS
https://npfolio.ga/

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