summaryrefslogtreecommitdiff
path: root/util/master/master.cgi
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-03-30 02:03:24 +0400
committerproller <proller@github.com>2013-03-30 02:03:24 +0400
commit16c11eb4a3bb46a388c645b7db738762e444cde8 (patch)
tree684795401e8837f03b3b6f7573c861cc8de6aac8 /util/master/master.cgi
parentdf49b93877b40551111be6ef5ecfe4629787ab75 (diff)
downloadminetest-16c11eb4a3bb46a388c645b7db738762e444cde8.tar.gz
minetest-16c11eb4a3bb46a388c645b7db738762e444cde8.tar.bz2
minetest-16c11eb4a3bb46a388c645b7db738762e444cde8.zip
Masterserver: report gameid, uptime, cosmetic fixes on server web page
Diffstat (limited to 'util/master/master.cgi')
-rwxr-xr-xutil/master/master.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/master/master.cgi b/util/master/master.cgi
index b918876bd..0e456ed0c 100755
--- a/util/master/master.cgi
+++ b/util/master/master.cgi
@@ -18,6 +18,7 @@ nginx:
location / {
index index.html;
+ add_header Access-Control-Allow-Origin *;
}
location /announce {
fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
@@ -35,6 +36,10 @@ apache .htaccess:
Allow from all
</FilesMatch>
Deny from all
+ <ifModule mod_headers.c>
+ Header set Access-Control-Allow-Origin: *
+ </ifModule>
+
=cut