From 30e8fbe2e5c415bcfb20ccefb2dc4696553e0c92 Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Thu, 11 Oct 2018 09:41:04 +0200 Subject: [PATCH] In nginx/nginx.conf, add more allowed headers w/ OPTIONS requests --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 9eed3e4a..003dd27c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -101,7 +101,7 @@ http { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent'; + add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; add_header 'Access-Control-Max-Age' 43200; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0;