Closed
Description
Symfony version(s) affected: 5.3.1
Description
I've upgraded from Symfony 5.2 to 5.3.1 and since then, in production submitting any form protected by CSRF fail with
the csrf token is invalid. please try to resubmit the form
Even form not handle by me (for example I have EasyAdminBundle and they fail too)
How to reproduce
- Install Symfony + EasyAdminBundle
- for session I use
framework:
session:
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
cookie_secure: auto
cookie_samesite: lax
3.login in EasyAdmin
4. try to submit a form -> you got the error
Possible Solution
Additional context
Is it related to #39919 ?
it happens only in production