Permalink
Browse files

Merge pull request #335 from gavinuhma/auth-fix

set withCredentials to true before xhr to fix authentication
  • Loading branch information...
2 parents 4375ef1 + 336430a commit e7fc25ebf3d1261c3862e348dbf45e1ad1fa1d04 @rauchg rauchg committed Nov 22, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/socket.js
View
@@ -149,6 +149,7 @@
var xhr = io.util.request();
xhr.open('GET', url, true);
+ xhr.withCredentials = true;
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
xhr.onreadystatechange = empty;

0 comments on commit e7fc25e

Please sign in to comment.