From 03b558df0da59d9669162fd3926a8f860f7c0ee0 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 21 Aug 2021 20:47:34 +0200 Subject: [PATCH] nominatim: set cors headers for qa-data --- cookbooks/nominatim/templates/default/nginx.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index 0f9765fd6..dc8b54a9a 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -169,6 +169,10 @@ server { index search.html; } + location /qa-data/ { + add_header Access-Control-Allow-Origin "*"; + } + location @php { if ($blocked_user_agent ~ ^2$) { return 403; } -- 2.39.5