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

In my case, it was because I ran another Asp.Net website before. So the cookies could not match for localhost. I cleared my cookies (just for localhost) and everything is fine now.


The issue is because you are using a ValidateAntiForgeryToken attribute on a GET request. You don't need to use this attribute for GET actions. Look here for more information:


In my case, I had this in my web.config:

<httpCookies requireSSL="true" />

But my project was set to not use SSL. Commenting out that line or setting up the project to always use SSL solved it.