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