net::ERR_CERT_AUTHORITY_INVALID when trying to locally call to API

落花浮王杯 提交于 2020-01-14 03:46:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!