From a61403023a83ed2d6d948238b3ef0f0a3e2e1b45 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 6 Jul 2023 14:31:32 +0200 Subject: [PATCH] Add hardening headers for user-uploaded files (#1244) --- content/en/admin/optional/object-storage-proxy.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/admin/optional/object-storage-proxy.md b/content/en/admin/optional/object-storage-proxy.md index 2318a3e9..8bc00bf9 100644 --- a/content/en/admin/optional/object-storage-proxy.md +++ b/content/en/admin/optional/object-storage-proxy.md @@ -63,6 +63,8 @@ server { add_header Cache-Control public; add_header 'Access-Control-Allow-Origin' '*'; add_header X-Cache-Status $upstream_cache_status; + add_header X-Content-Type-Options nosniff; + add_header Content-Security-Policy "default-src 'none'; form-action 'none'"; } } ```