MVC 4: The required anti-forgery form field "__RequestVerificationToken" is not present
It seems the best things in life come in pairs:
If you have a ValidateAntiForgeryToken annotation in your controller, you need to have a @Html.AntiForgeryToken() in your view.
If you have a ValidateAntiForgeryToken annotation in your controller, you need to have a @Html.AntiForgeryToken() in your view.
Comments
Post a Comment