I am getting the net::ERR_CERT_AUTHORITY_INVALID
error in ASP.NET Core when I try to request my Web API from an SPA.
The first solution to fix the issue was to go my ASP.NET Core address from browser Advanced
- Proceed to localhost (unsafe)
and after that the requests from my SPA would work. But I would have to repeat the procedure each time I am starting to work on my project.
Another solution I found was this. In a nutshell the solution is to run the command: dotnet dev-certs https --trust
. I am on Windows, so according to the linked article On Windows it'll get added to the certificate store
.
But after I run the command I am still getting the net::ERR_CERT_AUTHORITY_INVALID
issue on requests. What could I do about it?