Angular 默认应用服务:Chrome 中的隐私错误:NET::ERR_CERT_AUTHORITY_INVALID

标签 angular google-chrome ssl https localhost

我正在尝试遵循本指南 https://angular.io/guide/setup-local .我安装了 node.js 和 angular cli 并构建了默认应用程序:

ng new my-app

现在我要启动应用程序:

cd my-app
ng serve --open

启动正常:

** Angular Live Development Server is listening on localhost:4200, open your browser on https://localhost:4200/ **
i 「wdm」: Compiled successfully.

但是当我在 Chrome 中打开页面时它是 privacy error

当我尝试在 Firefox 中打开它时,一切正常。 我尝试使用下一个命令启动应用程序:

 ng serve --open --ssl true

还是一样的错误。 有什么帮助吗?此时我不需要 https,我只想能够在 Chrome 中打开我的应用程序。

+

我发布了错误的错误代码。我明白了:ERR_SSL_PROTOCOL_ERROR

最佳答案

打开 chrome://flags/#allow-insecure-localhost,启用这个标志并重新启动 chrome。然后 Chrome 将忽略本地主机的错误证书

关于Angular 默认应用服务:Chrome 中的隐私错误:NET::ERR_CERT_AUTHORITY_INVALID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59352651/

相关文章:

html - Chrome 无法正确显示我的表情符号

angular - 如何更改 Angular Material select 中的滚动条样式?

javascript - Angular5 响应式(Reactive)表单与 mailcheck.js

javascript - C#.NET : Server is not able to validate Angular Client [IdentityServer]

node.js - 在 node.js 中使用 nodemailer 发送电子邮件

ssl - 此站点无法提供安全连接 - 如何解决?

javascript - Node ,带 SSL 的 socket.io

angular - Nativescript - 我的组件中不存在 ChangeDetectorRef

google-chrome - 无法在 Chrome 控制台中输入方括号

google-chrome - 您可以在 Google Chrome 中使用 VMWare 远程控制台吗?