From 56d6b6e5bb1e3d6e743d6f1b17037ae2aa1d49c0 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 31 Jul 2019 18:58:02 +0200 Subject: matrix: Hide ACAO/ACAM proxy headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/matrix_kyriasis_com.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index 5f56fae..cec97da 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -61,7 +61,9 @@ nginx: - proxy_buffering: "off" - proxy_set_header: X-Forwarded-For $remote_addr - proxy_set_header: Host $host + - proxy_hide_header: Access-Control-Allow-Origin - add_header: "'Access-Control-Allow-Origin' '*'" + - proxy_hide_header: Access-Control-Allow-Methods - add_header: "'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, HEAD, OPTIONS'" - location /_synapse: -- cgit v1.2.3-70-g09d2