From d4b64c5f194841ab0083523988d6502f7081cf12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Wed, 23 Jul 2014 14:18:11 +0200 Subject: [PATCH] re-adding headers to allow AJAX call from different domains --- node/statusbot.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/statusbot.js b/node/statusbot.js index da2194f..5d62cbc 100644 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -116,9 +116,13 @@ app.use(flash()); app.get('/api/spaceapi/v13', function (req, res) { + res.setHeader("Access-Control-Allow-Origin", "*"); + res.setHeader("Cache-Control", "no-cache"); res.send(spaceanswer); }); app.get('/api/simple/v2', function (req, res) { + res.setHeader("Access-Control-Allow-Origin", "*"); + res.setHeader("Cache-Control", "no-cache"); res.send(simpleanswer); }); app.get('/api/usercount', function (req, res) {