Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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 http://s1.test.com/socket.io/1//L1VtwrMiikmwXVoEQF2o/?disconnect=1. Origin http://www.teste2.com 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...
commit 7f4154af2e6978b4d0781fa92acc8f9b7b625ee1 1 parent 63f1838
@eveiga authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  lib/socket.js
View
1  lib/socket.js
@@ -363,7 +363,6 @@
, this.options.host + ':' + this.options.port
, this.options.resource
, io.protocol
- , ''
, this.sessionid
].join('/') + '/?disconnect=1';
Please sign in to comment.
Something went wrong with that request. Please try again.