The required anti-forgery form field “__RequestVerificationToken” is not present Error in user Registration

后端 未结 19 1282
旧巷少年郎
旧巷少年郎 2020-11-29 22:12

I am using Membership.create user function, then the following error is occurring,

The required anti-forgery form field \"__RequestVerifi

19条回答
  •  悲哀的现实
    2020-11-29 22:22

    If anyone experiences the error for the same reason why I experience it, here's my solution:

    if you had Html.AntiForgeryToken();

    change it to @Html.AntiForgeryToken()

提交回复
热议问题