From ce5081ad8d5b089e45788c4294546b942f3d8cb0 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 18 Jul 2024 08:26:39 +0300 Subject: fixed cors --- api/index.js | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3