re-adding headers to allow AJAX call from different domains
This commit is contained in:
parent
c1fc86e20c
commit
d4b64c5f19
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue