Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix COR headers/requests for different ports on Safari.
  • Loading branch information
maccman committed Sep 27, 2010
commit fcba035330023802cbb391fc013c16338b0d3d16
2 changes: 1 addition & 1 deletion lib/socket.io/transports/xhr-multipart.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Multipart.prototype._onConnect = function(req, res){
var self = this, body = '', headers = {};
// https://developer.mozilla.org/En/HTTP_Access_Control
if (req.headers.origin && this._verifyOrigin(req.headers.origin)){
headers['Access-Control-Allow-Origin'] = req.headers.origin;
headers['Access-Control-Allow-Origin'] = '*';
headers['Access-Control-Allow-Credentials'] = 'true';
}
if (typeof req.headers['access-control-request-method'] !== 'undefined'){
Expand Down