aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-10-11 06:44:47 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-10-11 06:44:47 +0300
commitf5845ffe9bc8a3e51f332ed5e3324a23cbb5b580 (patch)
treed6a19c0e940d6882a6f81157e42cdbd1410e88c7 /server
parent754e2793da76a9181b0bb7e4f225497e52a24af6 (diff)
parent54bbbc85488fb29acb71a1a6d2e53eefba32c8ca (diff)
downloadarching-kaos-radio-f5845ffe9bc8a3e51f332ed5e3324a23cbb5b580.tar.gz
arching-kaos-radio-f5845ffe9bc8a3e51f332ed5e3324a23cbb5b580.tar.bz2
arching-kaos-radio-f5845ffe9bc8a3e51f332ed5e3324a23cbb5b580.zip
Merge branch 'fix'
Diffstat (limited to 'server')
-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);