io.configure(function (){
io.set('authorization', function (handshakeData, callback) {
// some code analysis
});
});
Coockie: {"headers":{"host":"192.168.122.252:3000","connection":"keep-alive","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","user-agent":"Mozilla/ 5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36","accept-encoding":"gzip,deflate,sdch","accept-language":"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4"},"address":{"address":"192.168.122.135","port":3146},"time":"Tue Sep 17 2013 19:16:16 GMT+0300 (EEST)","query":{"t":"1379433566379"},"url":"/socket.io/1/?t=1379433566379","xdomain":false,"issued":1379434576801}
Coockie: {"headers":{"host":"localhost:3000","connection":"keep-alive","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36","accept":"*/*","referer":"http://localhost:3000/","accept-encoding":"gzip,deflate,sdch","accept-language":"en-US,en;q=0.8","cookie":"auth.sid=s%3APjHB8aINSzgpvDqgPLtcwkSp.VVyPsLtWzyJKzooaePC2Yg1WaISVp5ew6x1e88jghly"},"address":{"address":"127.0.0.1","port":44417},"time":"Tue Sep 17 2013 19:02:40 GMT+0300 (EEST)","query":{"t":"1379433760241"},"url":"/socket.io/1/?t=1379433760241","xdomain":false,"issued":1379433760263}
Access-Control-Allow-Origin: *
won't work if set Access-Control-Allow-Credentials: true
. Try Access-Control-Allow-Origin: <a href="http://192.168.122.135</code>.">http://192.168.122.135</a>
. commented on October 3rd 19 at 04:01NODE_ENV=development
, and it all worked, and you ran the server with NODE_ENV=production
, and you have not worked there although it spits in the console about it.NODE_ENV=development
, to exclude all possible problems with radishes. But you already own found.I'm not sure what it is, but hypothetically, maybe Cooke is httpOnly parameterAnd then, the browser cannot receive cookies, but the server is still in the socket can. commented on October 3rd 19 at 04:03
Find more questions by tags Socket.ioJavaScriptNode.js
Configure the following:
- mariana_Considine commented on October 3rd 19 at 03:56
Here is a listing of the initialized variables:
- mariana_Considine commented on October 3rd 19 at 04:02
Corny had to install the service of radish.
I naively thought that the radish is something like stxxl:map and he module for Node.js should suffice with a head. - mariana_Considine commented on October 3rd 19 at 04:05