Yesterday I got a privilege to be a speaker on C# Corner MVP Show. It was a great show and a wonderful interaction with host Stephan Simon on my topic ‘Handling Notifications using Microsoft Graph’. Recording is available over here.
Thursday, February 25, 2021
Thursday, February 18, 2021
Ngrok is one of the well-known tool for local tunneling solution. I have used it many times being 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 required port as shown below:
and it got connected as shown below:
Till now everything is alright. But now when I ran my application with Ngrok’s forwarding address, I end up getting an error - 400 Bad Request.
And here is what I read more about this:
Seems like some applications can’t deal with the default behavior of Ngrok and need an explicit mention of header information, which means there is another way to handle such scenario:
After connecting Ngrok with above command, everything went very smooth and as expected.
Hope this tip would be useful for you too.