score:1

Accepted answer
export const socket = io(server, {
  cors: {
    origin: process.env.ACCESS_CONTROL_ALLOW_ORIGIN,
    methods: ["GET", "POST"]
  },
});

Related Query

More Query from same tag