我正在尝试遵循本指南https://angular.io/guide/setup-local 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 中打开页面时,它是隐私错误 https://i.stack.imgur.com/fSvLi.png
当我尝试在 Firefox 中打开它时,一切都很好。
我尝试使用下一个命令启动应用程序:
ng serve --open --ssl true
还是同样的错误。
有什么帮助吗?此时我不需要 https,我只想能够在 Chrome 中打开我的应用程序。
+
我发布了错误的错误代码。我得到这个:ERR_SSL_PROTOCOL_ERROR
open chrome://flags/#allow-insecure-localhost
,启用此标志并重新启动 chrome。 Chrome 将忽略 localhost 的错误证书
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)