November Happy Hour will be moved to Thursday December 5th.

IFramed form fails to validate the anti-forgery token on Mac/iOS

Vote:
 

The form is IFramed on another website. I get this error whe submitting a form on Safari on MacOS and Edge/Safari on iOS. Doesn't happen on Windows/Edge-Chrome, Mac/Edge. Just when using the Safari browser, which is why it makes sense that Edge fails on iOS.


2024-11-06T14:33:06,Error,club01mstr89mvrinte,fc65f7,638665003861573497,0,8840,126,"EPiServer.Forms.Internal.Security.DefaultAntiForgeryValidator : Failed to validate the anti-forgery token 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, String cookieToken, String formToken) at EPiServer.Forms.Internal.Security.DefaultAntiForgeryValidator.Validate(HttpContextBase httpContext)",400035f8-0000-cb00-b63f-84710c7967bb 2024-11-06T14:33:06,Error,club01mstr89mvrinte,fc65f7,638665003861573497,0,8840,126,"EPiServer.Global : Unhandled exception in ASP.NET System.Web.Mvc.HttpAntiForgeryException (0x80004005): Your anti-forgery token is not correct! at EPiServer.Forms.Internal.Security.AntiForgeryService.Validate(HttpContextBase httpContext) at EPiServer.Forms.Controllers.DataSubmitController.Submit() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass24_0.<InvokeActionMethodWithFilters>b__0() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at EPiServer.Forms.Controllers.FormsMvcHandler.ProcessController(IController controller) at EPiServer.Forms.Controllers.FormsMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)",400035f8-0000-cb00-b63f-84710c7967bb

#332500
Nov 06, 2024 14:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.