From 157eaf65e9dcc72c45b86e586ad32bbb1ae825c1 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 21 Mar 2019 20:13:15 +0100 Subject: nginx: Fix CORS quoting 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 | 6 +++--- nginx/matrix_kyriasis_com.sls | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'nginx') diff --git a/nginx/kyriasis_com.sls b/nginx/kyriasis_com.sls index bc1a749..099c9ea 100644 --- a/nginx/kyriasis_com.sls +++ b/nginx/kyriasis_com.sls @@ -32,7 +32,7 @@ nginx: - ssl_trusted_certificate: /etc/letsencrypt/live/kyriasis.com/fullchain.pem # https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security - - add_header: 'Strict-Transport-Security "max-age=31536000"' + - add_header: 'Strict-Transport-Security "max-age=31536000"' # Tell browsers not to render the page inside a frame, and avoid clickjacking. - add_header: X-Frame-Options SAMEORIGIN @@ -47,8 +47,8 @@ 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' + - add_header: "'Access-Control-Allow-Origin' '*'" + - add_header: "'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, HEAD, OPTIONS'" - client_max_body_size: 128m diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index 3883cec..b98ba69 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -39,7 +39,7 @@ nginx: - ssl_trusted_certificate: /etc/letsencrypt/live/matrix.kyriasis.com/fullchain.pem # https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security - - add_header: 'Strict-Transport-Security "max-age=31536000"' + - add_header: 'Strict-Transport-Security "max-age=31536000"' # Tell browsers to not try to auto-detect the Content-Type. - add_header: X-Content-Type-Options nosniff @@ -51,8 +51,8 @@ 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' + - add_header: "'Access-Control-Allow-Origin' '*'" + - add_header: "'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, HEAD, OPTIONS'" - client_max_body_size: 128m -- cgit v1.2.3-70-g09d2