尝试在本地调用API时使用net :: ERR_CERT_AUTHORITY_INVALID [英] net::ERR_CERT_AUTHORITY_INVALID when trying to locally call to API

查看:306
本文介绍了尝试在本地调用API时使用net :: ERR_CERT_AUTHORITY_INVALID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http:// localhost:4200 处有一个AngularJS,在 https:// localhost

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.

但是,当尝试从我的AngularJS应用程序请求时,该应用程序使用非SSL协议,并且位于我的API的其他端口上坐在SSL协议和其他端口上,我在chrome devTools网络标签上收到此错误net :: ERR_CERT_AUTHORITY_INVALID。

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.

是否需要更改SSL配置?我应该启用还是禁用Chrome中的选项?我应该添加SSL证书吗?

Do I need to change my SSL configuration? Should I enable or disable an option in chrome? Should I add an SSL certificate?

谢谢。

推荐答案

直接进入SSL端点即可解决问题,然后Chrome提醒此资源不受保护。尝试再次请求该资源时,单击继续将解决该问题。

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.

这篇关于尝试在本地调用API时使用net :: ERR_CERT_AUTHORITY_INVALID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆