Skip to content

Commit db60967

Browse files
Enable CSRF protection only when security-csrf is installed
1 parent 8d53c58 commit db60967

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

symfony/framework-bundle/7.2/config/packages/framework.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ framework:
99
#fragments: true
1010

1111
# Enable stateless CSRF protection for forms and logins/logouts
12-
form: { csrf_protection: { token_id: submit } }
12+
form:
13+
csrf_protection:
14+
enabled: null
15+
token_id: submit
1316
csrf_protection:
17+
enabled: null
1418
stateless_token_ids: [submit, authenticate, logout]
1519

1620
when@test:

0 commit comments

Comments
 (0)