Cross-Site WebSocket Hijacking in NodeJS
Socket.io
This library provides server options to define the list of allowed origins:
const io = new Server(httpServer, {
cors: {
origin: ["https://example.com"]
}
});
This library provides server options to define the list of allowed origins:
const io = new Server(httpServer, {
cors: {
origin: ["https://example.com"]
}
});