]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/nginx.erb
Update bundle
[chef.git] / cookbooks / nominatim / templates / default / nginx.erb
index def54f1ace9a6414dff411bdaee36dba1e61abb7..fe583d720042163a90c539dc37af7178b2db8175 100644 (file)
@@ -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;
         }