]> git.openstreetmap.org Git - chef.git/commitdiff
planet: always set cors header
authorGrant Slater <github@firefishy.com>
Thu, 7 Mar 2024 11:08:40 +0000 (11:08 +0000)
committerGrant Slater <github@firefishy.com>
Thu, 7 Mar 2024 11:08:44 +0000 (11:08 +0000)
Always set CORS header to ensure the header is also set on redirects.

Fixes: https://github.com/openstreetmap/operations/issues/1038
Signed-off-by: Grant Slater <github@firefishy.com>
cookbooks/planet/templates/default/apache.erb

index 91d142d9bd6ec689572c4d1eac0ed06167a89470..347b32aa0b9e8760f2796049813416ad83e55e42 100644 (file)
@@ -29,7 +29,7 @@
         Redirect /pbf-experimental/    /pbf/
 
         <IfModule mod_headers.c>
-                Header set Access-Control-Allow-Origin "*"
+                Header always set Access-Control-Allow-Origin "*"
         </IfModule>
 
         RewriteEngine on