Getting missing token on WFFM form submission.

Logs gove this error upon WFFM fom submission, what can be the reason for this ?

 

[Sitecore Root] 11436 15:40:42 ERROR The required anti-forgery form field "__RequestVerificationToken" is not present.
Exception: System.Web.Mvc.HttpAntiForgeryException
Message: The required anti-forgery form field "__RequestVerificationToken" is not present.
Source: System.Web.WebPages
at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken)
at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext, String cookieToken, String formToken)
at Sitecore.Forms.Mvc.Controllers.Filters.WffmValidateAntiForgeryTokenAttribute.OnAuthorization(AuthorizationContext filterContext)
at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__19(AsyncCallback asyncCallback, Object asyncState)

 

 

Thanks,

Samridhi

  • Can you take a look at your request? is it really missing, or is your request somewhere in the process redirected. Or is your session not sticky?
    You can disable the functionality <setting name="WFM.EnableAntiCsrf" value="false"/>