Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I just ran across an issue I hadn't experienced before, and wanted to see if there was a solution for it.
We have umbraco site version 7.15.3 running on Azure. We are using umbraco forms V 7.0.7 and has the anti forgery token enabled in UmbracoForms.config. We also have enabled default caching on front door (output caching). With this setup, when a form is submitted we get the below error
System.Web.Mvc.HttpAntiForgeryException (0x80004005): The required anti-forgery cookie "__RequestVerificationToken" is not present.
at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken)
at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext)
at Umbraco.Forms.Core.Common.ValidateFormsAntiForgeryTokenAttribute.OnAuthorization(AuthorizationContext filterContext)
Things we have tried
Disabling caching on front door and enabling anti forgery token works i.e the umbraco forms are successfully submitted
Enabling caching on front door and disabling the anti forgery token works i.e the umbraco forms are successfully submitted
Did you ever figure this out?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted