Skip to content

Commit 0e258f7

Browse files
committed
minor #20994 [Security] Stateless CSRF is enabled by default in 7.2 (ThomasLandauer)
This PR was merged into the 7.2 branch. Discussion ---------- [Security] Stateless CSRF is enabled by default in 7.2 Page: https://symfony.com/doc/current/security/csrf.html#stateless-csrf-tokens Info is taken from https://github.com/symfony/recipes/blob/main/symfony/form/7.2/config/packages/csrf.yaml Commits ------- faa30fc [Security] Stateless CSRF is enabled by default in 7.2
2 parents f6c5a4b + faa30fc commit 0e258f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/csrf.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ Stateless CSRF Tokens
331331

332332
.. versionadded:: 7.2
333333

334-
Stateless anti-CSRF protection was introduced in Symfony 7.2.
334+
Stateless anti-CSRF protection was introduced in Symfony 7.2, and set as default.
335335

336-
By default CSRF tokens are stateful, which means they're stored in the session.
336+
Traditionally CSRF tokens are stateful, which means they're stored in the session.
337337
But some token ids can be declared as stateless using the ``stateless_token_ids``
338338
option:
339339

0 commit comments

Comments
 (0)