aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-01 00:58:21 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-01 00:58:21 +0000
commit202561f39efc6fe694b5819e0e853f4230e0eff6 (patch)
tree6080c98842ad9bf030d2133ac8d7cc181063d61e /README
parent2775dcec50a68b49e67d5507629cd0194e6fd5ad (diff)
downloadmgatres-202561f39efc6fe694b5819e0e853f4230e0eff6.tar
mgatres-202561f39efc6fe694b5819e0e853f4230e0eff6.tar.gz
mgatres-202561f39efc6fe694b5819e0e853f4230e0eff6.tar.bz2
mgatres-202561f39efc6fe694b5819e0e853f4230e0eff6.tar.xz
mgatres-202561f39efc6fe694b5819e0e853f4230e0eff6.zip
README: add something about Access-Control-Allow-Origin headers
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8414 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'README')
-rw-r--r--README16
1 files changed, 16 insertions, 0 deletions
diff --git a/README b/README
index b9e4e2b..b44df73 100644
--- a/README
+++ b/README
@@ -42,3 +42,19 @@ For testing, you can set the environement variable MGATRES_CONF to the
path of a default configuration file that will be used instead of
/usr/share/mga-treasurer/config.
+
+JSON files and http headers
+---------------------------
+
+So that the json files can be used from pages on other domains with
+XMLHttpRequest, the http header Access-Control-Allow-Origin needs to be
+set. See this page for details :
+https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
+
+To add the header for .json files, you can use something like this in
+apache configuration, inside the VirtualHost definition :
+
+ <FilesMatch "\.json$">
+ Header set Access-Control-Allow-Origin "*"
+ </FilesMatch>
+