localhost HTTP Error 400. The request hostname is invalid. code example Example: http error 400. the request hostname is invalid ngrok http 8080 -host-header="localhost:8080"