diff --git a/app.js b/app.js index 5b24db6..9f015c9 100644 --- a/app.js +++ b/app.js @@ -69,14 +69,13 @@ const options = { // const httpsServer = https.createServer(options, app); // const io = new Server(httpsServer, { allowEIO3: true }); -const httpsServer = https.createServer(app, options); +const httpsServer = https.createServer(options, app); app.get('/', (req, res) => { res.send('Now using https..'); }); const io = new Server(httpsServer, { - origins: '*:*', allowRequest: (req) => { console.log('req', req); return true;