Problem with login using ASP.NET MVC
-
farshid8 last edited by
Hi,
I use ASP.NET MVC and just tried to login in Opera and I received the following error:
"The required anti-forgery cookie "__RequestVerificationToken" is not present".
There is no such problem in IE, chrome, firefox or Edge .
Is it possible to know if only I have this problem and whether there's a way around it?
With thanks.
-
alobpreis last edited by
I'm afraid what you are asking is more appropriate for an MVC forum rather than this one. Anyway, what you report happens when your login action has the
[ValidateAntiForgeryToken]
attribute but your cshtml file is lacking if its@Html.AntiForgeryToken()
.