From f1d96634b8c36935c4c387f8c7e98a9e30698e80 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 14 Aug 2023 10:44:23 +0200 Subject: [PATCH] nominatim: send proper Access-Control-Allow-Headers response --- cookbooks/nominatim/templates/default/nginx.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index def54f1ac..fe583d720 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -211,8 +211,9 @@ server { if ($request_method = 'OPTIONS') { add_header 'Content-Type' 'text/plain; charset=UTF-8'; add_header 'Content-Length' 0; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods 'GET,OPTIONS' always; + add_header Access-Control-Allow-Origin "*"; + add_header Access-Control-Allow-Methods 'GET,OPTIONS'; + add_header Access-Control-Allow-Headers $http_access_control_request_headers; return 204; } -- 2.39.5