]> Raphaël G. Git Repositories - airlibre/commitdiff
Recipe symfony/form update
authorRaphaël Gertz <git@rapsys.eu>
Wed, 2 Dec 2026 14:12:16 +0000 (15:12 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 2 Dec 2026 14:12:16 +0000 (15:12 +0100)
config/packages/form.yaml [new file with mode: 0644]

diff --git a/config/packages/form.yaml b/config/packages/form.yaml
new file mode 100644 (file)
index 0000000..57205d7
--- /dev/null
@@ -0,0 +1,10 @@
+# yaml-language-server: $schema=../schema.json
+# Enable stateless CSRF protection for forms
+framework:
+    form:
+        csrf_protection:
+            token_id: submit
+
+    csrf_protection:
+        stateless_token_ids:
+            - submit