We are not using Ajax posts.
Until I am getting this error from one form, mainly with Arabic language.
Please find the full logs for better view,
System.InvalidOperationException: The exception handler configured on ExceptionHandlerOptions produced a 404 status response. This InvalidOperationException containing the original exception was thrown since this is often due to a misconfigured ExceptionHandlingPath. If the exception handler is expected to return 404 status responses then set AllowStatusCode404Response to true.
---> Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery cookie ".AspNetCore.Antiforgery.6gJoQAZYAFw" is not present.
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)
at Umbraco.Forms.Core.Attributes.ValidateFormsAntiForgeryTokenAttribute.ValidateFormsAntiForgeryTokenFilter.OnAuthorizationAsync(AuthorizationFilterContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.
Antiforgery Validation Exception
I am getting below error on daily basis on a production website. Need your advise and support.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery cookie ".AspNetCore.Antiforgery.6gJoQAZYAFw" is not present.
Is it always on the same form,or different forms? Are you doing any Ajax posts?
Hi,
We are not using Ajax posts. Until I am getting this error from one form, mainly with Arabic language.
Please find the full logs for better view,
how are your coding your form in the View? it would appear that it is not finding the Antiforgery token that the controller is expecting.
We are using Umbraco Forms.
Unfortunately I have not used Umbraco Forms.
If you view the page source for the form are you able to see the token?
Are you posting the form to your own controller or is this also handled by Umbraco Forms?
Yes, antiforgery is there when we do inspect
The Submission is handled by Umbraco Form plugin except we add extra input validation before submitting
How are you doing the extra validation and submitting your form?
is working on a reply...