ionic serve --external --public-host="foo.test"
gives error "Invalid Host header"
#4677
Labels
ionic serve --external --public-host="foo.test"
gives error "Invalid Host header"
#4677
Description:
I am looking into running ionic for local development in a Docker container behind a reverse proxy (Traefik).
I quickly ran into the "Invalid Host header" issue from #3440.
I also tried it without any Docker or reverse proxy, and run into the same problem.
My expectation is that using the
--public-host="foo.test"
and--external
options, I would be able to access theionic serve
development webserver athttp://foo.test
(given thatfoo.test
resolves to127.0.0.1
), but this doesn't work.Is my expectation wrong? Or is there a bug with
--public-host
?Steps to Reproduce:
Output:
My
ionic info
:Other Information:
n/a
The text was updated successfully, but these errors were encountered: