From 3881f8e0cc3161311e2f111184473731ba9498c1 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sun, 15 Sep 2019 19:30:55 +0200 Subject: [PATCH] Allow the headers we are sending.. --- sites-available/elastic.kevinmidboe.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/sites-available/elastic.kevinmidboe.conf b/sites-available/elastic.kevinmidboe.conf index bbae291..546d9ef 100644 --- a/sites-available/elastic.kevinmidboe.conf +++ b/sites-available/elastic.kevinmidboe.conf @@ -35,6 +35,7 @@ server { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' 'https://kevinmidboe.com'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + add_header 'Access-Control-Allow-Headers' 'Content-Type, Content-Length'; add_header 'Content-Type' 'application/json; charset=utf-8'; add_header 'Content-Length' 0; return 204;