]> Raphaƫl G. Git Repositories - blog/blobdiff - config/packages/csrf.yaml
Import csrf and property_info packages yaml files
[blog] / config / packages / csrf.yaml
diff --git a/config/packages/csrf.yaml b/config/packages/csrf.yaml
new file mode 100644 (file)
index 0000000..40d4040
--- /dev/null
@@ -0,0 +1,11 @@
+# Enable stateless CSRF protection for forms and logins/logouts
+framework:
+    form:
+        csrf_protection:
+            token_id: submit
+
+    csrf_protection:
+        stateless_token_ids:
+            - submit
+            - authenticate
+            - logout