Monday, February 7, 2022

.Net project can't run on local machine when debug on Chrome

 Why ? Chrome Automatic Redirect http to https!!

If you ever visited the https version of a website (whether it resolved or not), Google Chrome might repeatedly send you to that version. In other words, http://localhost:4000 continually redirects you to https://localhost:4000


Solution

In a new browser tab, go to chrome://net-internals/#hsts

Scroll down to "Delete domain security policies" and enter the root domain that's causing you issues. For example, I entered localhost to prevent the domain from automatically redirecting to https.

Then, click the Delete button.



No comments: