Skip to content

Commit

Permalink
Set Access-Control-Allow-Credentials true, regardless of cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinuhma committed Nov 22, 2011
1 parent e4a9342 commit 4c17f7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,7 @@ Manager.prototype.handleHandshake = function (data, req, res) {
if (origin) {
// https://developer.mozilla.org/En/HTTP_Access_Control
headers['Access-Control-Allow-Origin'] = origin;

if (req.headers.cookie) {
headers['Access-Control-Allow-Credentials'] = 'true';
}
headers['Access-Control-Allow-Credentials'] = 'true';
}

this.authorize(handshakeData, function (err, authorized, newData) {
Expand Down

0 comments on commit 4c17f7f

Please sign in to comment.