Thursday, June 6, 2019

The required anti-forgery cookie "__RequestVerificationToken" is not present.

The required anti-forgery cookie "__RequestVerificationToken" is not present.

To solve this issue:
1)Check on the web config file
if you have
<httpCookies  requireSSL="true" httpOnlyCookies="true"/>
then remove the requireSSL=true
<httpCookies  httpOnlyCookies="true"/>

2) Check if you [ValidateAntiForgeryToken] attribute used in Get Method if used then removed it also.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.