From 7b258b6fc1ae8c5dc68e0195dd499e3dcc55f56e Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 21 Mar 2019 20:10:52 +0100 Subject: Add CORS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/kyriasis_com.sls | 5 ++++- nginx/matrix_kyriasis_com.sls | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/kyriasis_com.sls b/nginx/kyriasis_com.sls index 58c5ddc..c04a806 100644 --- a/nginx/kyriasis_com.sls +++ b/nginx/kyriasis_com.sls @@ -47,6 +47,9 @@ nginx: # http://www.gnuterrypratchett.com/ - add_header: 'X-Clacks-Overhead "GNU Terry Pratchett"' + - add_header: 'Access-Control-Allow-Origin' '*'; + - add_header: 'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, HEAD, OPTIONS'; + - client_max_body_size: 128m - error_log: /var/log/nginx/kyriasis.com.error.log @@ -59,5 +62,5 @@ nginx: - proxy_buffering: "off" - proxy_set_header: X-Forwarded-For $remote_addr - proxy_set_header: Host $host - + # # vim: ft=yaml et: diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index c6f6cda..d9897de 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -51,6 +51,9 @@ nginx: # http://www.gnuterrypratchett.com/ - add_header: 'X-Clacks-Overhead "GNU Terry Pratchett"' + - add_header: 'Access-Control-Allow-Origin' '*'; + - add_header: 'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, HEAD, OPTIONS'; + - client_max_body_size: 128m - error_log: /var/log/nginx/matrix.error.log -- cgit v1.2.3-70-g09d2