From 88b214bce17d3de031f4641248175d5f9fe5da06 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 8 Aug 2022 20:32:13 +0200 Subject: [PATCH] VEGAS/matrix: fix CORS policy --- hosts/VEGAS/services/matrix/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/VEGAS/services/matrix/default.nix b/hosts/VEGAS/services/matrix/default.nix index 02a8e4e..50e9b1b 100644 --- a/hosts/VEGAS/services/matrix/default.nix +++ b/hosts/VEGAS/services/matrix/default.nix @@ -118,7 +118,12 @@ in { access_log off; ''; }; - locations."= /.well-known/matrix/client".alias = clientConfigJSON; + locations."= /.well-known/matrix/client" = { + alias = clientConfigJSON; + extraConfig = '' + add_header Access-Control-Allow-Origin "*"; + ''; + }; }; }; systemd.services = lib.genAttrs [ "coturn" "matrix-appservice-discord" "matrix-synapse" ] (_: {