re-adding headers to allow AJAX call from different domains

This commit is contained in:
Lucas Pleß 2014-07-23 14:18:11 +02:00
parent c1fc86e20c
commit d4b64c5f19
1 changed files with 4 additions and 0 deletions

View File

@ -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) {