X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f4877e5e631c018fc4ffe3a5da831660c11f5d5f..55d3ae09e912b8627faa004e8f7fb7dab5d1c7f2:/cookbooks/nominatim/templates/default/nginx.erb 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; }