From 72bbc79943b637a6c908124f4d84a0308298f9e7 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 16 Jan 2022 13:10:14 -0500 Subject: [PATCH] Fix syntax --- nginx/cors.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/cors.conf b/nginx/cors.conf index 03c163d..69e42ca 100644 --- a/nginx/cors.conf +++ b/nginx/cors.conf @@ -1,11 +1,11 @@ if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE'; - add_header 'Access-Control-Allow-Headers', 'Content-Type' + add_header 'Access-Control-Allow-Headers' 'Content-Type'; # cache CORS for 24 hours add_header 'Access-Control-Max-Age' 86400; # return empty response for preflight add_header 'Content-Type' 'text/plain; charset=UTF-8'; add_header 'Content-Length' 0; return 204; -} \ No newline at end of file +}