We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[IsCsrfTokenValid]
1 parent de48c55 commit 7b47bdcCopy full SHA for 7b47bdc
reference/attributes.rst
@@ -80,6 +80,7 @@ Security
80
~~~~~~~~
81
82
* :ref:`CurrentUser <security-json-login>`
83
+* :ref:`IsCsrfTokenValid <csrf-controller-attributes>`
84
* :ref:`IsGranted <security-securing-controller-attributes>`
85
86
Serializer
security/csrf.rst
@@ -164,6 +164,8 @@ method to check its validity::
164
}
165
166
167
+.. _csrf-controller-attributes:
168
+
169
Alternatively you can use the
170
:class:`Symfony\\Component\\Security\\Http\\Attribute\\IsCsrfTokenValid`
171
attribute on the controller action::
0 commit comments