Hi there, I'm trying to clear out some of the log errors on a large project on Umbraco 8.18 I've inherited. One of the regular errors being through is in the attached image. Could anyone explain generally what causes this? Any what I should be looking out for in the code to correct it? I'm guessing its something to do with forms - Umbraco forms is used extensively so I don't know if its exspected with that
h
huwred
08/21/2023, 10:23 AM
sounds like a form post with out the antiforgery token, do you have any forms that do not use BeginUmbracoForm?
s
si26
08/21/2023, 10:28 AM
hmm quite possibly, its quite an extensive site will have a trawl through and see
si26
08/21/2023, 10:29 AM
for forms which don't use Umbraco forms, does this need to be added to each one?
si26
08/21/2023, 10:30 AM
I've found it on some hardcoded forms but not all...
h
huwred
08/21/2023, 4:10 PM
either that or decorate the action with [IgnoreAntiforgeryToken]