From: Raphaƫl Gertz Date: Mon, 13 Oct 2025 11:41:49 +0000 (+0200) Subject: Import csrf and property_info packages yaml files X-Git-Tag: 0.0.1~24 X-Git-Url: https://git.rapsys.eu/blog/commitdiff_plain/2493d0b1cfe222bcd0db428ef974c6f218323c8e?hp=ac322d2577e26848be237c712a572542c583836c Import csrf and property_info packages yaml files --- diff --git a/config/packages/csrf.yaml b/config/packages/csrf.yaml new file mode 100644 index 0000000..40d4040 --- /dev/null +++ b/config/packages/csrf.yaml @@ -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 diff --git a/config/packages/property_info.yaml b/config/packages/property_info.yaml new file mode 100644 index 0000000..dd31b9d --- /dev/null +++ b/config/packages/property_info.yaml @@ -0,0 +1,3 @@ +framework: + property_info: + with_constructor_extractor: true