From 03402388ba5188de5f44be28c63b0e289447c9af Mon Sep 17 00:00:00 2001 From: Michel Bobillier Date: Wed, 31 Dec 2025 08:27:50 +0100 Subject: [PATCH] First version (#1913) * First version * fix: manifest.json * Fix: The yaml file is part of the recipe * Fix: for call-qa / Run checks --------- Co-authored-by: Michel Bobillier --- .../1.0/config/packages/response_headers.yaml | 9 +++++++++ .../response-headers-bundle/1.0/manifest.json | 10 ++++++++++ .../response-headers-bundle/1.0/post-install.txt | 1 + 3 files changed, 20 insertions(+) create mode 100644 republique-et-canton-de-geneve/response-headers-bundle/1.0/config/packages/response_headers.yaml create mode 100644 republique-et-canton-de-geneve/response-headers-bundle/1.0/manifest.json create mode 100644 republique-et-canton-de-geneve/response-headers-bundle/1.0/post-install.txt diff --git a/republique-et-canton-de-geneve/response-headers-bundle/1.0/config/packages/response_headers.yaml b/republique-et-canton-de-geneve/response-headers-bundle/1.0/config/packages/response_headers.yaml new file mode 100644 index 00000000..f12a821c --- /dev/null +++ b/republique-et-canton-de-geneve/response-headers-bundle/1.0/config/packages/response_headers.yaml @@ -0,0 +1,9 @@ +# config/packages/response_headers.yaml +# https://github.com/republique-et-canton-de-geneve/response-headers-bundle/blob/main/config.md + +response_headers: + headers: +# Cache-Control : max-age=0, must-revalidate, no-cache, no-store, private" +# Referrer-Policy: strict-origin +# X-Content-Type-Options: nosniff +# X-XSS-Protection: 1; mode=block diff --git a/republique-et-canton-de-geneve/response-headers-bundle/1.0/manifest.json b/republique-et-canton-de-geneve/response-headers-bundle/1.0/manifest.json new file mode 100644 index 00000000..daf36644 --- /dev/null +++ b/republique-et-canton-de-geneve/response-headers-bundle/1.0/manifest.json @@ -0,0 +1,10 @@ +{ + "bundles": { + "EtatGeneve\\ResponseHeadersBundle\\ResponseHeadersBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/republique-et-canton-de-geneve/response-headers-bundle/1.0/post-install.txt b/republique-et-canton-de-geneve/response-headers-bundle/1.0/post-install.txt new file mode 100644 index 00000000..bcd2b017 --- /dev/null +++ b/republique-et-canton-de-geneve/response-headers-bundle/1.0/post-install.txt @@ -0,0 +1 @@ + * Edit the config/package/response-headers.yaml file to configure http response header.