Current command: ng serve --host --public $IP:$PORT
Results on my website:
Invalid Host header
The --disable-host-check flag works fine if you need to run from Cloud9.
I use the following command:
ng serve --open --host $IP --port $PORT --disable-host-check
In angular.json, add the following under architect -> serve -> options
"disableHostCheck": true
Got the answer from this Github Issue Page
You need to specify the host
ng serve --port 8080 --host 123.34.56.78