From 5bd04a0bf9851cd2aca56bdaf5d62316279743fe Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 3 Feb 2017 03:02:14 +0000 Subject: config-service-myhostname: allow XHR --- config-service-myhostname.PKGBUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf