]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: send proper Access-Control-Allow-Headers response
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 14 Aug 2023 08:44:23 +0000 (10:44 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 14 Aug 2023 08:44:23 +0000 (10:44 +0200)
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;
         }