Commit 41e9cf7e authored by cividesk's avatar cividesk
Browse files

Add .htaccess for CORS

parent edb01fe8
......@@ -19,6 +19,9 @@ done
# Regenerate statistics and push to destination
php generate.php
rsync -a json $DEST
# create .htaccess to allow access from anywhere (cf. CORS for $.getJSON)
echo 'Header add Access-Control-Allow-Origin "*"' > $DEST/.htaccess
# and also archive (will someday be useful one way or another ...)
cp -R json /var/www/`date +%F`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment