gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

Cookie is missing in firefox 3.6.3 under OSX #65

Closed Papipo closed 13 years ago

Papipo commented 13 years ago

I have a pretty naive test working under Chrome, but under firefox the Cookie header is empty. The cookie and websocket hosts are the same, just port 3000 and 8000 respectively.

Please let me know how can I provide you more info in order to fix this issue.

gimite commented 13 years ago

Hmm I cannot reproduce it. Note that the host name (without port) should exactly match e.g. It's not sent from a.com to b.a.com. Cookie is extracted at WebSocketMain.as:119 so you can add logging there to check each variable there.

Papipo commented 13 years ago

Gonna see if I can track it down.

Papipo commented 13 years ago

Well, the hosts are the same, It's return ExternalInterface.call("function(){return document.cookie}"); that is returning a blank string. Gonna investigate further.

Papipo commented 13 years ago

document.cookie is blank, I've tested it in firebug. Is this normal? The web developer toolbar shows my cookie though.

Papipo commented 13 years ago

Sorry to bother, but this is a problem with my application, that sets the cookie as HttpOnly. Gonna close the issue. Thanks anyway!