问题
I have an AngularJS served at http://localhost:4200 and an apache server api located at https://localhost. Both of these separately work just fine.
but, when trying to request from my AngularJS app which is sitting in a non-SSL protocol and on a different port to my API sitting on SSL protocol and on a different port, I get this error net::ERR_CERT_AUTHORITY_INVALID on my chrome devTools network tab.
Do I need to change my SSL configuration? Should I enable or disable an option in chrome? Should I add an SSL certificate?
Thanks in advanced.
回答1:
The problem was resolved by going straight to the SSL endpoint, then chrome alerts that this resource is not secured. Clicking on "Proceed" will resolve the problem when trying to request for that resource again.
来源:https://stackoverflow.com/questions/48737370/neterr-cert-authority-invalid-when-trying-to-locally-call-to-api