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

后端 未结 19 1286
旧巷少年郎
旧巷少年郎 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:32

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

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

提交回复
热议问题