Skip to content

Craft 5 Blitz cache CSRF issue #1778

Discussion options

You must be logged in to vote

I don't think that approach works with something like Blitz, unfortunately. If it does, I haven't seen a single thing anywhere that suggests it. 😕

I removed the Solspace-suggested JS code, and turned on the asyncCsrfInputs in Craft. Cleared the Blitz cache an hour ago. Tried the forms on different machines and browsers, confirming they were seeing the hour-old cached page. And it worked! So perhaps it would be worth listing this as an option on your page here: https://docs.solspace.com/craft/freeform/v5/guides/templating/caching-forms/

I will do a few more tests to make sure, but it looks like the new async CSRF input Craft feature solved this for me. Feel free to close this issue, I ca…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1765 on February 03, 2025 21:01.