Craft 4.9 & 5.2 asyncCsrfInputs setting #1424
Unanswered
gjhead
asked this question in
Questions & Answers
Replies: 1 comment
-
Hi @gjhead I just validated that once I set This is with Craft 5.4.8 and Freeform 5.6.5. Pull request #1465 removed the manual csrf input that Freeform used before with Craft’s |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"Craft 4.9 and 5.2 added the asyncCsrfInputs config setting, which makes it easy to include CSRF inputs in forms without sacrificing cachability. When that’s enabled, csrfInput() will return a placeholder element rather than an input, and registers JS code that fetches a CSRF token via Ajax and swaps out the placeholder with an input on page load."
Does this new setting mean that we could drop the additiona javascript snippet as shared here?
Beta Was this translation helpful? Give feedback.
All reactions