**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** 1. Install Symfony + EasyAdminBundle 2. 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** <!--- Optional: only if you have suggestions on a fix/reason for the bug --> **Additional context** Is it related to https://github.com/symfony/symfony/pull/39919 ? it happens only in production