From c5d18733d26647e80e38871285dddba7459788f9 Mon Sep 17 00:00:00 2001 From: Justin Croonenberghs Date: Sat, 8 Aug 2020 23:19:07 -0500 Subject: [PATCH] Update CORS for ma1sd Even with the v2 updates listed in #503 and partially addressed in #614, this is still needed to enable identity services to function with Element Desktop/Web. Testing on multiple clients with a clean config has confirmed this, at least for my installation. --- .../templates/nginx/conf.d/matrix-synapse.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 b/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 index 8fd87958..8729bdc6 100644 --- a/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 +++ b/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 @@ -64,6 +64,7 @@ proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; + add_header Access-Control-Allow-Origin *; } {% endif %}