visual stuido localhost refused to connect. code example
Example: this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework
Open this in your browser: chrome://net-internals/#hsts
Go to Delete domain security policies
Enter "localhost"
Restart browser