Skip to content

[Turbo] Correctly fix framework.csrf_protection.check_header configuration #1440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions symfony/ux-turbo/2.20/config/packages/ux_turbo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Enable stateless CSRF protection for forms and logins/logouts
framework:
csrf_protection:
check_header: true
13 changes: 4 additions & 9 deletions symfony/ux-turbo/2.20/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
"bundles": {
"Symfony\\UX\\Turbo\\TurboBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["turbo"],
"conflict": {
"symfony/framework-bundle": "<7.2",
"symfony/security-csrf": "<7.2"
},
"add-lines": [
{
"file": "config/packages/csrf.yaml",
"position": "after_target",
"target": " csrf_protection:",
"content": " check_header: true"
}
]
}
}