Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix XHR support for (CORS) digest auth
from Mozila foundation: "Indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies or authorization headers. The default is false."
  • Loading branch information
relvao authored and James Halliday committed Nov 13, 2013
1 parent dff8a6a commit 1b2b7e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/request.js
Expand Up @@ -15,6 +15,8 @@ var Request = module.exports = function (xhr, params) {
+ (params.path || '/')
;

xhr.withCredentials = true;

xhr.open(
params.method || 'GET',
(params.scheme || 'http') + '://' + uri,
Expand Down

0 comments on commit 1b2b7e3

Please sign in to comment.