Ngrok is one of the most well-known tools for local tunneling solutions. I have used it many times since it's the easiest tool for any developer.
This time once again, I thought to use Ngrok for my current application, which uses Graph API to get notifications from Microsoft Teams channel. As always, I launched the ngrok with the required port as shown below,
- ngrok http 44332
and it got connected as shown below,

So far everything is alright. But now when I run my application with ngrok’s forwarding address, I end up getting error 400 Bad Request.

- ngrok http http://localhost:44332 -host-header="localhost:44332"
After connecting ngrok with above command, everything went very smoothly and as expected.

I hope this article will be useful for you. Happy learning!

Paras SrivastavaPosted May 1, 2024, 5:26 AM
In my case error is same. it is not working