aboutsummaryrefslogtreecommitdiff
path: root/server/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/index.js')
-rwxr-xr-xserver/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/index.js b/server/index.js
index 4526b8c..589d7db 100755
--- a/server/index.js
+++ b/server/index.js
@@ -152,6 +152,8 @@ function requestParser(req, res)
{
printRequest(req);
akLogMessage('INFO', `Incoming from [${req.connection.remoteAddress}]:${req.socket._peername.port} @ ${req.headers.host}${req.url}`);
+ res.setHeader('Access-Control-Allow-Origin', '*');
+ processMethod(req, res);
}
const server = http.createServer(serverOptions, requestParser);