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.
1 parent 66cee25 commit 85e58beCopy full SHA for 85e58be
reference/configuration/security.rst
@@ -449,6 +449,19 @@ redirect after logout.
449
450
.. _reference-security-logout-csrf:
451
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
465
csrf_parameter
466
~~~~~~~~~~~~~~
467
0 commit comments