Skip to content

Commit 3965fa3

Browse files
committed
minor #1377 Simplify the configuration of logout CSRF protection (rosier)
This PR was merged into the main branch. Discussion ---------- Simplify the configuration of logout CSRF protection Commits ------- a9ed1f8 Simplify the configuration of logout CSRF protection
2 parents c668648 + a9ed1f8 commit 3965fa3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

config/packages/security.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ security:
5353
path: security_logout
5454
# The name of the route to redirect to after logging out
5555
target: homepage
56-
5756
# Secure the logout against CSRF
58-
csrf_parameter: logout
59-
csrf_token_generator: security.csrf.token_manager
57+
enable_csrf: true
6058

6159
# needed because in tests we redefine the 'main' firewall to use
6260
# HTTP Basic instead of the login form, so this firewall has

0 commit comments

Comments
 (0)