From 950bcb30550cbb6c043ba569d883ce1ea4be8d8b Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 18 Nov 2022 11:52:20 +0000 Subject: [PATCH] nixos/middleman: Fix broken Element Web file downloads --- nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix b/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix index 4df02c6..73c9d53 100644 --- a/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix +++ b/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix @@ -181,7 +181,8 @@ in add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; - add_header Content-Security-Policy "frame-ancestors 'none'"; + # This seems to break file downloads... + #add_header Content-Security-Policy "frame-ancestors 'none'"; ''; in {