Skip to content

Instantly share code, notes, and snippets.

@ccoenraets
Created October 9, 2012 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccoenraets/3859430 to your computer and use it in GitHub Desktop.
Save ccoenraets/3859430 to your computer and use it in GitHub Desktop.
io.configure(function () {
io.set('authorization', function (handshakeData, callback) {
if (handshakeData.xdomain) {
callback('Cross-domain connections are not allowed');
} else {
callback(null, true);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment