summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-02-03 03:02:14 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-02-03 03:02:14 +0000
commit5bd04a0bf9851cd2aca56bdaf5d62316279743fe (patch)
tree6a920414d8955bacb8682a3f9d3aa09ef614e943
parent6d488c1513675c5fc009986cba1336c42b4f58bf (diff)
config-service-myhostname: allow XHR
-rw-r--r--config-service-myhostname.PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/config-service-myhostname.PKGBUILD b/config-service-myhostname.PKGBUILD
index ff32aaa..ed219d1 100644
--- a/config-service-myhostname.PKGBUILD
+++ b/config-service-myhostname.PKGBUILD
@@ -1,5 +1,5 @@
. ${BUILDFILE%/*}/common.sh
-pkgver=20170201.1
+pkgver=20170202
package() {
preamble
@@ -21,6 +21,8 @@ server {
root /srv/http/myhostname;
autoindex on;
+ add_header "Access-Control-Allow-Origin" "*";
+
location = /sysinfo {
uwsgi_pass unix:/run/uwsgi/myhostname.sock;
uwsgi_modifier1 9; # Standard CGI request