From 22c90930ca0f86d7a7034b97e58a2d1848929744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 30 Apr 2022 09:02:19 +0100 Subject: [PATCH] Fix access control allow origin? --- config/services/matrix-media-repo.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/services/matrix-media-repo.nix b/config/services/matrix-media-repo.nix index aff44ee0..0c1f0435 100644 --- a/config/services/matrix-media-repo.nix +++ b/config/services/matrix-media-repo.nix @@ -79,11 +79,17 @@ in proxyWebsockets = true; extraConfig = '' proxy_ssl_server_name on; + proxy_hide_header Access-Control-Allow-Origin; + add_header Access-Control-Allow-Origin '*' always; ''; }; locations."/_matrix/media" = { proxyPass = "http://localhost:8008"; proxyWebsockets = true; + extraConfig = '' + proxy_hide_header Access-Control-Allow-Origin; + add_header Access-Control-Allow-Origin '*' always; + ''; }; locations."/.well-known/matrix/server" = { extraConfig = ''