Invalid Host header (webpack: Compiled successfully)

A little out of my league here… I’m trying to work with a vue.js/nw.js/webpack project even though I don’t really know those. I imported from GitHub ( https://github.com/klembot/twinejs ) to:

http://twine.glitch.me/

I just get “Invalid Host header”

The log says “Project is running at e[1me[34mhttp://localhost:8080/e[39me[22m
10:09 AM
webpack output is served from e[1me[34m/e[39me[22m” AND “webpack: Compiled successfully” and I can’t find any section in the code where I can change the localhost.

Thanks.

I’ve come across this before. Add --host 0.0.0.0 --public $PROJECT_DOMAIN.glitch.me" to your start command making it "start": "webpack-dev-server --inline --hot --host 0.0.0.0 --public $PROJECT_DOMAIN.glitch.me", and it’ll work.

3 Likes

That works! Thank you!