From 2bedf1be2faed1153aa78d984d224bb20bdc55c9 Mon Sep 17 00:00:00 2001 From: Juraj Kalafut Date: Mon, 13 May 2024 16:02:27 +0200 Subject: [PATCH] Update index.js allow origin --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 786b241..b1368be 100755 --- a/server/index.js +++ b/server/index.js @@ -1,6 +1,6 @@ const args = require('./bundles/args'); const server = require('./bundles/server'); -const io = require('socket.io')(server); +const io = require('socket.io')(server,{origins: ['*']}); const redis = require("redis"); const subscriber = redis.createClient(JSON.parse(args.sub)); const publisher = redis.createClient(JSON.parse(args.pub));