Tile: set header to enable CORS
authorGrant Slater <git@firefishy.com>
Tue, 23 Jul 2013 13:22:09 +0000 (14:22 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 23 Jul 2013 13:22:09 +0000 (14:22 +0100)
cookbooks/tile/templates/default/apache.erb

index 95ec5d11b318734523e59f4379cb3de9a823143a..ac4ba8f1270488d5ca65a272dbdc549141cdbcee 100644 (file)
@@ -24,6 +24,9 @@
   ErrorLog /var/log/apache2/error.log
   BufferedLogs on
 
+  #Set Access-Control-Allow-Origin header to allow Cross-origin resource sharing (CORS)
+  Header set Access-Control-Allow-Origin "*"
+
   # Enable the rewrite engine
   RewriteEngine on