]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/apache.erb
Force Access-Control-Allow-Origin for taginfo api responses
[chef.git] / cookbooks / taginfo / templates / default / apache.erb
index 897cfcd215e7aa03ced80f51ac76ed3540cafb3c..288b13ff1c6f991358dc439cbd2edc4c7f7550ca 100644 (file)
         CacheEnable disk /api
         CacheEnable disk /embed
         CacheStaleOnError off
+
+        <Location /api>
+                Header setifempty Access-Control-Allow-Origin *
+        </Location>
 </VirtualHost>
 <% end -%>