Poonam Karia
Poonam Karia

Reputation: 119

Ngrok - HTTP 400 with virtualhost

I have created a url in ngrok integrated in my webhook of stripe. But when I call that url, I receive a HTTP 400.

I have a domain name attached to my localhost url: abc.com:port and i have registered that address in my host-file. I executed ngrok like this: ngrok http port which gives me localhost:port.

What might be the issue for it?

Upvotes: 1

Views: 660

Answers (1)

Jeppe
Jeppe

Reputation: 2286

See the documentation on how you can "ask ngrok to rewrite the Host header of all tunneled requests to match what your web server expects."

"For example, to route to your local site myapp.dev, you would run: ngrok http -host-header=myapp.dev 80"

Upvotes: 1

Related Questions