Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to permanently exclude localhost from HSTS list in Google Chrome

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?

like image 998
Bugs Bunny Avatar asked Aug 16 '16 07:08

Bugs Bunny


People also ask

How do I bypass HSTS in chrome?

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.

How do I enable HSTS in chrome?

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.

How do I delete HSTS settings in edge?

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 chrome net internals?

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.


1 Answers

You can follow the solution here.

When Google Chrome keeps redirecting your localhost Url from http://localhost to https://localhost, do the following:

  1. Open the Developer Tools panel (CTRL+SHIFT+I)
  2. Click and hold the reload icon
  3. A menu will open
  4. Choose the 3rd option from this menu (“Empty Cache and Hard Reload”)
like image 184
Sushant Pimple Avatar answered Sep 25 '22 04:09

Sushant Pimple