Skip to content

Commit 85e58be

Browse files
committed
[Security] Document the enable_csrf logout option
1 parent 66cee25 commit 85e58be

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/configuration/security.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,19 @@ redirect after logout.
449449

450450
.. _reference-security-logout-csrf:
451451

452+
enable_csrf
453+
~~~~~~~~~~~
454+
455+
**type**: ``boolean`` **default**: ``null``
456+
457+
Set this option to ``true`` to enable CSRF protection in the logout process
458+
using Symfony's default CSRF token generator. Set also the ``csrf_token_generator``
459+
option if you need to use a custom CSRF token generator.
460+
461+
.. versionadded:: 6.2
462+
463+
The ``enable_csrf`` option was introduced in Symfony 6.2.
464+
452465
csrf_parameter
453466
~~~~~~~~~~~~~~
454467

0 commit comments

Comments
 (0)