Skip to Content
0
May 18, 2020 at 10:47 PM

OData POST request returning 403 forbidden from dot net component which is working with postman

820 Views

Hi All,

I am facing an issue - 403 forbidden CSRF Token Validation Failed.

I am trying to make a POST request from ASP.net componet; I have included the headers X-CSRF-Token & Set-Cookie and Basic authentication with user name and password.

The POST request is working in postman but when i am trying the same with C# code it is not working, I tired with RestSharp and HttpWebRequest but the same issue.

Please help me on this issue.

thanks,

Prema