Skip to content

Commit

Permalink
Do accept cookies with CORS.
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Aug 19, 2011
1 parent 06099a6 commit 0384cc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/utils.js
Expand Up @@ -156,6 +156,10 @@ utils.createXHR = function(method, url, payload, callback) {
delete xhrDefaultHeaders[k];
}
}
if ('withCredentials' in xhr) {
// Set cookies on CORS, please.
xhr.withCredentials = "true";
}

var cleanup = function() {
// IE needs this field to be a function
Expand Down

0 comments on commit 0384cc4

Please sign in to comment.