Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LearnBoost/socket.io into travis
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Nov 22, 2011
2 parents 0f29d78 + 17d0f4d commit 8fc3e37
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,11 +727,8 @@ Manager.prototype.handleHandshake = function (data, req, res) {

if (origin) {
// https://developer.mozilla.org/En/HTTP_Access_Control
headers['Access-Control-Allow-Origin'] = '*';

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

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

0 comments on commit 8fc3e37

Please sign in to comment.