X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5636881ff4e16aaf1849c0dd399a138b8638d6cc..3d1373107990131ab0d92a42f755c17375344136:/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 297e5d68e..fe583d720 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -209,10 +209,11 @@ server { <% elsif node[:nominatim][:api_flavour] == "python" %> if ($request_method = 'OPTIONS') { - add_header 'Content-Type' 'text/plain charset=UTF-8'; + 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; }