Press "Enter" to skip to content

Enable Access to http://localhost For Development

I will forget this if I don’t get it written down, and I’m hoping that someone else will find this useful as well. If you’re having trouble accessing http://localhost from your development machine (for instance, http://locahost:4200 when starting an Angular application), you can do the following, at least for the Edge and Chrome browsers.

Open your Edge or Chrome browser, and go to edge://net-internals/#hsts or chrome://net-internals/#hsts, as applicable. At the very bottom (at least at the time of this writing), you’ll find a section called Delete domain security policies. Here, enter localhost into the Domain box, then click on the Delete button. You should now be able to access localhost from http on your development machine.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.