You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is worth noting that this worked absolutely fine until I set enableCsrfProtection to true in the general config, which does make sense. We needed this true so that asyncCsrfInputs would work.
I've tested and setting asyncCsrfInputs to false does make it work, so it could be to do with this.
Please let me know if you need any more information.
Steps to reproduce
Additional info
Craft CMS version: 4.11.3
Stripe for Craft Commerce version: 4.1.5
PHP version: 8.3.9
Database driver & version: MySQL 28.1
Plugins & versions:
The text was updated successfully, but these errors were encountered:
Description
Whenever I navigate to the payment page, the stripe form just renders a 400 error.
We're using blitz caching alongside a static caching solution, but this page should be omitted from the cache.
I can see in the request, the craft CSRF token is not added to the automatic post to the endpoint.
Payment form code:
It is worth noting that this worked absolutely fine until I set
enableCsrfProtection
to true in the general config, which does make sense. We needed this true so thatasyncCsrfInputs
would work.I've tested and setting asyncCsrfInputs to false does make it work, so it could be to do with this.
Please let me know if you need any more information.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: