Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid. when i am using ngrok
Solution 1:
Your web server is rejecting the request since it has different hostname.
Try ngrok http -host-header="localhost:8080"
Solution 2:
This is the solution you want.
ngrok http 8080 -host-header="localhost:8080"
Solution 3:
This worked for me:
ngrok http -host-header=localhost 8080