asp.net-mvcgoogle-chromehttpslocalhost

Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID


While debugging a local ASP.NET application on Chrome for localhost Https site it's giving error:

Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID.

I am not able to open localhost without https. How can I resolve this to be able to debug?


enter image description here


Solution

  • Finally banging head on desk for two days I found this setting in chrome://flags/ to Allow invalid certificates for resources loaded from localhost. finally no disable all certificate error, only for localhost. Adding answer for someone struggling with same issue.

    enter image description here

    For Edge enter image description here