[Vuejs]-How to make https work at nodejs and vue.js

0👍

It’s the CORS issue, and you need to add cors option for the socket.io server.

Refer to Handling CORS for Socket.io.

io = require('socket.io')(server, {
  cors: {
    origin: '*'
  }
});

Leave a comment