Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Edge redirects http://localhost to https://localhost

Tags:

I am encountering an issue where I am not able to open my localhost web apps because Microsoft Edge is redirecting the URL http://localhost:3000 to https://localhost:3000. Due to this I get the error

The connection for this site is not secure. localhost sent an invalid response.

Why is this happening and what is the fix to it?

like image 248
Ankit Giri Avatar asked Sep 10 '20 08:09

Ankit Giri


People also ask

How do I stop HTTP redirect to https in Edge?

Click on the dropdown infront of Automatic HTTPS and select disabled from the list. Click on restart button at bottom to restart the browser and see if this fixes your issue.

Does Edge automatically change http to https?

You'll see that Edge has selected the Switch to HTTPS only on websites likely to support HTTPS option by default. This means that Edge will only upgrade your connection to HTTPS automatically if the website supports the protocol.

How do I stop redirects on Edge?

In Edge, go to Settings and more at the top of your browser. Select Settings > Cookies and site permissions. Under All permissions, select Pop-ups and redirects. Turn on the Block (recommended) toggle.


1 Answers

I got a solution from this article

Following are the steps for Microsoft edge -

  • Go to Edge browser and type following statement in address bar.

    edge://net-internals/#hsts

  • Scroll all the way down to the section below and enter “localhost”, then click “Delete”. enter image description here

like image 158
Ankit Giri Avatar answered Sep 20 '22 12:09

Ankit Giri