I have an MVC page with two partial views A and B. When I submit partial view B, ONLY the first time I get this error.
The anti-forgery cookie token and form field token do not match.
After the first time the view works perfectly. I have added [ValidateAntiForgeryToken]
in the code page and have added @Html.AntiForgeryToken()
in the partial view.
When I remove the partial view A from the page, B is working without any error.
Any suggestion would really help.