aboutsummaryrefslogtreecommitdiff
path: root/api/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/index.js')
-rwxr-xr-xapi/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/index.js b/api/index.js
index b39ee07..943196a 100755
--- a/api/index.js
+++ b/api/index.js
@@ -97,6 +97,7 @@ function requestParser(req, res)
printRequest(req);
akLogMessage('INFO', `Incoming from [${req.connection.remoteAddress}]:${req.socket._peername.port} @ ${req.headers.host}${req.url}`);
if (checkIfAllowedIP(req.connection.remoteAddress)){
+ res.setHeader('Access-Control-Allow-Origin', '*');
processMethod(req, res);
}
else {