Share via

Subscription validation request failed. The notification endpoint must respond with a 200 OK to the validation request

Atiq Ur Rehman 0 Reputation points
2025-04-09T13:33:06.27+00:00

I am trying to create an Event Grid subscription to receive user notifications using the Microsoft Graph library. However, while creating the subscription, I encountered the following error: "Subscription validation request failed. The notification endpoint must respond with a 200 OK to the validation request." After researching this issue in the community, I discovered that the host header is missing in the validation request , which causes my API endpoint to be hit & server return Bad Request (400). This happens because the server blocks the request before it reaches my application. How can I successfully validate the request without the host header?

Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.