I have a mvc site and I use the ValidateAntiForgeryToken on some of my action methods. On view I have the following line of code:
@Html.AntiForgeryToken()
The problem starts when I tried to call the function using postman rest client. I get an error:
The required anti-forgery form field "__RequestVerificationToken" is not present.
I tried sending the cookies needed as such: Cookie: ASP.NET_SessionId=hgpv04mkuldbex45im3gco; __RequestVerificationToken=2Of_03RzDacR4Hf-sWS3f_G0kZs1
But still getting the same error. Anyone knows what the hell am I missing please?