angular - 运行 Angular/cli 开发服务器 c9.io 时为 "Invalid Host header"

标签 angular angular-cli c9.io

当前命令:ng serve --host --public $IP:$P​​ORT

我网站上的结果:

Invalid Host header

最佳答案

如果您需要从 Cloud9 运行,--disable-host-check 标志可以正常工作。

我使用以下命令:

ng serve --open --host $IP --port $PORT --disable-host-check

关于angular - 运行 Angular/cli 开发服务器 c9.io 时为 "Invalid Host header",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43677629/

相关文章:

angular - Angular 2 模块中 esm 目录的用途是什么?

收到父数据之前的 Angular 子渲染

Angular 未捕获类型错误 : e is not a constructor after build --prod (work on ng serve)

python - 在 c9 中运行 selenium

MySQL 未运行

angular - 如何修复 Angular 'source.lift is not a function' 错误?

asp.net - Angular-CLI .NET Core 中的index.html 是如何调用的?

angular - 缺少 .angular-cli.json 文件 : Angular

mysql - 如何使用 Rails 5 迁移在 MySQL 中添加 JSON 列

Html:通过单击同一图像更改图像