-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSRF is broken in Symfony 7.2 and newest Easy Admin Bundle. #6694
Comments
I couldn't get it to work for either. |
Afaik removing
solves the issue, is it something expected? Then final file is
|
Stateless tokens need additional client side code. |
@fracsi thanks for answering responding under this post, does it mean that if I do have enabled csrf protection for stateless tokens, does it mean that basic forms should be not working? My point is there that, either csrf protection basic forms and stateless should work just fine, enabled at the same time. |
Sadly, the docs for this Symfony feature are missing (see symfony/symfony-docs#20306). I won't be able to fix this so feel free to send a Pull Request with the needed fixes and, if necessary, some description explaining the changes. Thanks! |
Nicolas recently contributed a fix related to CSRF (see #6724). Did it fix the issue for you? |
Unfortunately, it looks to me like the fix only partially solves the problem. In my project I have disabled csrf_protection as follows: framework:
csrf_protection: false This leads to the known error: I have symfony v7.2.2 and easyadmin v4.23.1. As soon as I remove the two lines |
Describe the bug
Wanted to use Symfony 7.2 with newest Easy Admin Bundle.
There is an issue with CSRF, or I just improperly set it up, csrf-token input field value is equal to
csrf-token
, does not get replaced with autogenerated value.Funny thing is that, locally everything works just fine, prod environment is broken.
To Reproduce
(OPTIONAL) Additional context
Could not add, sorry.
The text was updated successfully, but these errors were encountered: