From 1fd77f751a42ffe974a2f806f2b6bfbaa1564dec Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Tue, 14 Apr 2020 15:53:02 -0700 Subject: [PATCH] Add cors headers (#16) * Add cors headers * Add always --- nginx/nginx.template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx/nginx.template b/nginx/nginx.template index bb2cb9e2955..2235c932b0d 100644 --- a/nginx/nginx.template +++ b/nginx/nginx.template @@ -83,6 +83,11 @@ http { # Connectivity check location /204 { + add_header 'Access-Control-Allow-Origin' '*' always; + add_header 'Access-Control-Allow-Methods' 'GET'; + add_header 'Access-Control-Max-Age' 0; + add_header 'Content-Type' 'text/plain; charset=utf-8'; + add_header 'Content-Length' 0; return 204; } }