Angular 默认应用服务:Chrome 中的隐私错误:NET::ERR_CERT_AUTHORITY_INVALID
Angular default app ng serve: privacy error in Chrome: NET::ERR_CERT_AUTHORITY_INVALID
我正在尝试遵循本指南 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 然后将忽略 localhost
的错误证书
您只打开了 http://localhost:4200
而没有打开 https://
。
我正在尝试遵循本指南 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 然后将忽略 localhost
您只打开了 http://localhost:4200
而没有打开 https://
。