]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: set cors headers for qa-data
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Aug 2021 18:47:34 +0000 (20:47 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Aug 2021 18:47:34 +0000 (20:47 +0200)
cookbooks/nominatim/templates/default/nginx.erb

index 0f9765fd65bb837ea91b7de2ff31383ae6ae8d2b..dc8b54a9ab8840c7fb0ea5b72ba8008bc71faa81 100644 (file)
@@ -169,6 +169,10 @@ server {
         index search.html;
     }
 
         index search.html;
     }
 
+    location /qa-data/ {
+        add_header Access-Control-Allow-Origin "*";
+    }
+
     location @php {
         if ($blocked_user_agent ~ ^2$)
         { return 403; }
     location @php {
         if ($blocked_user_agent ~ ^2$)
         { return 403; }