From: Sarah Hoffmann Date: Mon, 14 Aug 2023 08:44:23 +0000 (+0200) Subject: nominatim: send proper Access-Control-Allow-Headers response X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/f1d96634b8c36935c4c387f8c7e98a9e30698e80?ds=inline;hp=-c nominatim: send proper Access-Control-Allow-Headers response --- f1d96634b8c36935c4c387f8c7e98a9e30698e80 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; }