Deactivating HTTPS for localhost for Chrome

Let the world know ...Tweet about this on TwitterShare on Google+0Share on Facebook0Email this to someoneShare on LinkedIn0

I recently got a new company laptop. While this is generally great news, it means to go through a lot of configurations to adopt the standard image to my needs. One thing I noticed was that after installing a local http server, that Chrome won’t connect to http://localhost:8080, but instead goes to https://localhost:8080. Chrome loves security so much, that is switches to TLS even on a localhost connection. Now, this is not exactly how I can work. I cannot – but would love to – install a valid TLS certificate on all my localhost web servers. This is too much work and most of those servers are short living.

How can you disable the automatic switch to TLS done by Chrome?

It seems that this comes from HTST. Therefore, creating an exception is enough to not let Chrome make this TLS switch again.

First, check if HTST is active for localhost

  1. Access chrome://net-internals/#hsts in Chrome

  2. Go to query domain and search for localhost

  3. Check the result. If you get some results, HTST is active for localhost

Deactivate HTST for Localhost

  1. Access chrome://net-internals/#hsts in Chrome
  2. In the delete domain section, insert localhost

  3. Validate the deletion by searching again for localhost. You should new get not found.

Let the world know ...Tweet about this on TwitterShare on Google+0Share on Facebook0Email this to someoneShare on LinkedIn0

Leave a Reply

Your email address will not be published. Required fields are marked *