Skip to content

Commit 7d83ece

Browse files
committed
minor #17045 [Security] Document the enable_csrf logout option (javiereguiluz)
This PR was merged into the 6.2 branch. Discussion ---------- [Security] Document the enable_csrf logout option Fixes #17027. Commits ------- 85e58be [Security] Document the enable_csrf logout option
2 parents 3f84ac5 + 85e58be commit 7d83ece

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
@@ -448,6 +448,19 @@ redirect after logout.
448448

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

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

0 commit comments

Comments
 (0)