summaryrefslogtreecommitdiffstats
path: root/pingid.c
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2020-06-20 10:42:08 +0100
committerfishsoupisgood <github@madingley.org>2020-06-20 10:42:08 +0100
commit93dbd25f15d4fb7e8b43411471c1e50f7ea77f6b (patch)
tree800631ce715df629d5804106ee9b255c4f15f390 /pingid.c
parent766d64916d507cac77e9b6b69cc14c59c9d75ecc (diff)
downloadpingid-93dbd25f15d4fb7e8b43411471c1e50f7ea77f6b.zip
pingid-93dbd25f15d4fb7e8b43411471c1e50f7ea77f6b.tar.gz
pingid-93dbd25f15d4fb7e8b43411471c1e50f7ea77f6b.tar.bz2
allow use in XSS
Diffstat (limited to 'pingid.c')
-rw-r--r--pingid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pingid.c b/pingid.c
index 76309ba..6e33510 100644
--- a/pingid.c
+++ b/pingid.c
@@ -151,6 +151,7 @@ main (int argc, char *argv[])
squirt ("/sys/class/gpio/gpio4/value", "0");
+ printf ("Access-Control-Allow-Origin: *\n");
printf ("Content-Type: text/plain\n\n%s\n", ret);
return 0;