Hello, I’m trying to run a project using compose web but after running the project I’m getting
Invalid Host header
error in browser. Can someone please help?
➕ 1
b
Big Chungus
05/18/2022, 9:58 AM
Which url are you using to access the app?
p
Partho Paul
05/18/2022, 10:44 AM
@Big Chungus It is running in localhost:80. I made an entry in /etc/hosts file as
127.0.0.1 name.company.local
and upon trying to open it via name.company.local, it’s throwing the above error. Is my approach correct?
b
Big Chungus
05/18/2022, 11:07 AM
Right, the problem then is not k/js nor compose. Why can't you use localhost:8080 or whatever the default webpack dev-server port is?
p
Partho Paul
05/18/2022, 11:14 AM
There’s a limitation in an api I’m consuming where it only allows requests coming from “.local” and not localhost. I tried using hotel as well, but it wasn’t working