This is a followup question to Google Chrome redirecting localhost to https.
Does anyone know, how to permanently exclude localhost
from HSTS list in Google Chrome?
Or, any other elegant solution that wouldn't require developer to visit chrome://net-internals/#hsts
and delete localhost
every time when switching from working on an HTTPS project to a different project on HTTP?
Open Google Chrome. Search for chrome://net-internals/#hsts in your address bar. Locate the Query HSTS/PKP domain field and enter the domain name that you wish to delete HSTS settings for. Finally, enter the domain name in the Delete domain security policies and simply press the Delete button.
Fortunately, the fix is simple, open up a new Chrome browser window or tab and navigate to the address chrome://net-internals/#hsts and type the URL you are trying to access in the field at the bottom, “Delete Domain Security Policies” and press the Delete button, viola! You should now be able to access that URL again.
edge://net-internals/#hstsScroll to the bottom of the page to the Delete domain security policies section. Enter the domain name of the PMC in the Domain field, and then click Delete.
What is net-internals? Per the Chromium Project, Net-internals is a “visualizer for the NetLog event stream. It can be used both in real-time, and also to load up post-mortem NetLog dumps.” Essentially, it's a real time look at network data, allowing you to download logs and see visuals of network data.
You can follow the solution here.
When Google Chrome keeps redirecting your localhost Url from http://localhost
to https://localhost
, do the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With