Angular 运行 本地地址对文件使用 https

Angular running on local adress uses https for files

我是 运行 我在本地网络上的 angular 项目,使用此命令:ng serve --host=<ip_adress>。我可以从手机 phone 通过 http 访问该页面,但我收到错误消息 net::ERR_SSL_PROTOCOL_ERROR。 我没有用 https 设置任何东西,基础设置在 index.html 中,就像这样 <base href="/">

发现 answer/found 我自己的错误。

我的 index.html 脑袋里仍然有元标记 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">