Skip to content
Browse files

Update socket.js

If "sync disconnect on unload" is set to true I was getting a lot of errors like these: 
 -> XMLHttpRequest cannot load Origin is not allowed by Access-Control-Allow-Origin.

I found out that this was being caused by the extra slash right before the sessions_id on the url! This fix removes that extra space on the uri formation (Why is it there?)

Best Regards
  • Loading branch information...
1 parent 63f1838 commit 7f4154af2e6978b4d0781fa92acc8f9b7b625ee1 @eveiga committed Mar 7, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/socket.js
1 lib/socket.js
@@ -363,7 +363,6 @@
, + ':' + this.options.port
, this.options.resource
, io.protocol
- , ''
, this.sessionid
].join('/') + '/?disconnect=1';

0 comments on commit 7f4154a

Please sign in to comment.
Something went wrong with that request. Please try again.