Want to turn off HTTP Strict Transport Security (HSTS) header
-
This problem started just recently. When I visit the https:// version of my site (e.g. by mistake, or intentionally when accessing the wp-admin area), it sends back the following header in an HTTPS reply:
Strict-Transport-Security: max-age=16070400; includeSubDomains
Then, exactly per specifications https://dev.chromium.org/sts, Google Chrome browser remembers that the current domain should only be contacted over HTTPS. In the future, Chrome redirects all requests for URLs in the current domain to HTTPS, which is undesirable for me (because the public area of the wordpress installation breaks over https:// ; only the wp-admin area works over https:// ).
The only way to remove the domain from Chrome’s HSTS set is by visiting Chrome’s about://net-internals/#hsts settings area, then use the “Delete domain” field. After that, the visits to https:// will NOT be redirected to https:// , until, of course, I explicitly type https:// but once, see the first paragraph of this note.
This is a PITA.
How do I *prevent* the server from ever generating the header
Strict-Transport-Security: max-age=16070400; includeSubDomains
when visiting the https:// area?In other words, what does cause the server to generate that header in the first place?
The site in question is https:// goo.gl / qTO4Mc (remove the blanks)
- The topic ‘Want to turn off HTTP Strict Transport Security (HSTS) header’ is closed to new replies.