Ionic 4 angular - Invalid Host header error

ionic
angular

#1

Hi, I am trying to run ionic 4 angular app, but can’t solve the Invalid Host header error. I have encountered this problem only on c9 and presume it’s because of the cloud infrastructure.

Here is the public c9 repo: https://c9.io/wixosk/ionic4publictest

I have tried to disable host check:

ionic serve --host $IP --port $PORT --public $C9_HOSTNAME --history-api-fallback --disableHostCheck --disable-host-check

or using specific public host:

ionic serve -p 8080 -H 0.0.0.0 --public-host [url]

But none of that (or combination) seems to work :cry:
Can you please point me into right direction?
Thank you very much!