Skip to content

Commit 58a3678

Browse files
authored
[Turbo] Correctly fix framework.csrf_protection.check_header configuration (#1440)
1 parent 87f1e0b commit 58a3678

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Enable stateless CSRF protection for forms and logins/logouts
2+
framework:
3+
csrf_protection:
4+
check_header: true

symfony/ux-turbo/2.20/manifest.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
"bundles": {
33
"Symfony\\UX\\Turbo\\TurboBundle": ["all"]
44
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
58
"aliases": ["turbo"],
69
"conflict": {
710
"symfony/framework-bundle": "<7.2",
811
"symfony/security-csrf": "<7.2"
9-
},
10-
"add-lines": [
11-
{
12-
"file": "config/packages/csrf.yaml",
13-
"position": "after_target",
14-
"target": " csrf_protection:",
15-
"content": " check_header: true"
16-
}
17-
]
12+
}
1813
}

0 commit comments

Comments
 (0)