I am new to Node.JS , and this question might be a bit trivial . I am using something like this on the client side :-
var sock = io.connect('http://www.mydomain.com:3000');
sock.on('connect', function () {
console.log("Connected successfully");
sock.emit("_rK",{});
});
My question is : How do i prevent cross domain connections ? Or simply , how do i prevent users from connecting to the web socket without using the website ?
According to this : Cross-domain connection in Socket.IO , cross domain connections are allowed in socket.io .