[Security] Implement stateless headers/cookies-based CSRF protection
| Q | A |
|---|---|
| Feature PR | symfony/symfony#58095 |
| PR author(s) | @nicolas-grekas |
| Merged in | 7.2 |
We created this issue to not forget to document this new feature. We would really appreciate if you can help us with this task. If you are not sure how to do it, please ask us and we will help you.
To fix this issue, please create a PR against the 7.2 branch in the symfony-docs repository.
Thank you! :smiley:
@nicolas-grekas if you have some time, please try to send a PR for this. I feel like this is important and you are the one who understands this best. Thanks!
Friendly ping @nicolas-grekas
The release is out now, but we're still lacking the docs for this big change. Do you have any time, once the conference is over, to write this document? 🙏
It should be noted that the JS file needs to be included using the Stimulus bundle; otherwise, after the update, you'll get only error messages with someting aboutinvalid CSRF-Token without a hint why it is invalid. It took me a while to unterstand the changes, as I hadn't installed the Stimulus bundle.