-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Document isCsrfTokenValid #4668
Comments
Where should we document this? We have just 2 locations where we talk about CSRF afaik, and both should not have this addition:
|
I'm not sure when you need this method at all. Isn't CSRF validation performed automatically with the rest of the validation? |
I'll ask @lyrixx, who is the author of this new feature, to better explain us a use case for this feature. |
The goal is to be able to use CSRF protection in actions where you are not using a Symfony Form (for instance on DELETE actions where doing the whole form binding just for the CSRF protection is way overkill and hurts performance) |
In that case, I would propose to create a new cookbook article in the Controllers section talking about this. |
This PR was squashed before being merged into the 2.6 branch (closes #5572). Discussion ---------- 4668 document isCsrfTokenValid | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | 2.6 | Fixed tickets | #4668 See original PR #5325 for comments. Commits ------- 11383f8 4668 document isCsrfTokenValid
…k09) This PR was squashed before being merged into the 2.3 branch (closes #5818). Discussion ---------- document old way of checking validity of CSRF token | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | all | Fixed tickets | Related to #4668 Commits ------- 8257cc8 document old way of checking validity of CSRF token
see symfony/symfony#11602
The text was updated successfully, but these errors were encountered: