summaryrefslogtreecommitdiffstats
path: root/nginx
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-07-31 18:58:02 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2019-07-31 18:58:02 +0200
commit56d6b6e5bb1e3d6e743d6f1b17037ae2aa1d49c0 (patch)
treee608dcc9797f43a2d05dc7ee9a0cc86578ea9815 /nginx
parentc8414824c0d14f835b2550a49952ea142aa985fb (diff)
downloadpillar-56d6b6e5bb1e3d6e743d6f1b17037ae2aa1d49c0.tar.xz
matrix: Hide ACAO/ACAM proxy headers
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r--nginx/matrix_kyriasis_com.sls2
1 files changed, 2 insertions, 0 deletions
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: