From 7642718888d54b574710bf4857d2940d652a8f2d Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 20 Sep 2022 00:04:42 +0300 Subject: [PATCH] LINXD-2222: Update --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index b404714..f3d8e9f 100644 --- a/app.js +++ b/app.js @@ -48,8 +48,8 @@ app.use('/sfu', express.static(path.join(__dirname, 'public'))) const options = { key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'), cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'), - // requestCert: false, - // rejectUnauthorized: false + requestCert: false, + rejectUnauthorized: false } const httpsServer = https.createServer(options, app) @@ -60,6 +60,7 @@ httpsServer.listen(process.env.PORT, () => { const io = new Server(httpsServer, { allowEIO3: true, + origins: ["*:*"], allowRequest: (req, next) => { console.log('req', req); next(null, true)