The required anti-forgery cookie “__RequestVerificationToken” is not present.

The required anti-forgery cookie “__RequestVerificationToken” is not present.

In your ASP.NET MVC adventures, you may come across the following error when loading a view.

The required anti-forgery cookie “__RequestVerificationToken” is not present.

After searching Google for awhile, you might become desperate with the many different solutions presented. Normally, the solution to this issue is related to the ValidateAntiForgeryToken attribute on actions. When accessing a GET action, you don’t need to use the anti-forgery token.

However, this is not the only solution. In my case, my web.config had this entry:

Checking the project settings in Visual Studio revealed that my project was not set to use SSL which caused a conflict. Either comment out the above line or set the project to always use SSL.

See more solutions to this issue on this StackOverflow answer..

3 thoughts on “The required anti-forgery cookie “__RequestVerificationToken” is not present.

  1. I have this same issue, but only when using Safari iOS on iPad. Any thoughts as to how to address this issue (I am doing all of which is mentioned in the above post).

    Thanks in advanced for any help!

Leave a Reply

Your email address will not be published. Required fields are marked *