diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-10-11 06:44:47 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-10-11 06:44:47 +0300 |
commit | f5845ffe9bc8a3e51f332ed5e3324a23cbb5b580 (patch) | |
tree | d6a19c0e940d6882a6f81157e42cdbd1410e88c7 /server | |
parent | 754e2793da76a9181b0bb7e4f225497e52a24af6 (diff) | |
parent | 54bbbc85488fb29acb71a1a6d2e53eefba32c8ca (diff) | |
download | arching-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-x | server/index.js | 2 |
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); |