When I am using ngrok & run url given by ngrok with following configuration:
- my local url is :
localhost:8080/someexample - my
ngrokurl is :http://f07d0862.ngrok.io/
it show this error:
Bad Request - Invalid Hostname HTTP Error 400.
When I am using ngrok & run url given by ngrok with following configuration:
localhost:8080/someexamplengrok url is : http://f07d0862.ngrok.io/it show this error:
Bad Request - Invalid Hostname HTTP Error 400.
Your web server is rejecting the request since it has different hostname.
Try ngrok http -host-header="localhost:8080"
-host-header="localhost:8080"--host-header="localhost:8080"For me it was this
ngrok.exe http https://localhost:44315 --host-header=localhost:44315
The parameters have been updated:
ngrok http 80 --host-header="localhost:80"
EXAMPLES:
ngrok http 80 # secure public URL for port 80 web server
ngrok http --domain baz.ngrok.dev 8080 # port 8080 available at baz.ngrok.dev
ngrok http foo.dev:80 # tunnel to host:port instead of localhost
ngrok http https://localhost # expose a local https server
ngrok tcp 22 # tunnel arbitrary TCP traffic to port 22
ngrok tls --domain=foo.com 443 # TLS traffic for foo.com to port 443
ngrok start foo bar baz # start tunnels from the configuration file
May be you should turn off your firewall.
That works for me.