Skip to content

Commit 1b2b7e3

Browse files
relvaoJames Halliday
authored andcommitted
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."
1 parent dff8a6a commit 1b2b7e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/request.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ var Request = module.exports = function (xhr, params) {
1515
+ (params.path || '/')
1616
;
1717

18+
xhr.withCredentials = true;
19+
1820
xhr.open(
1921
params.method || 'GET',
2022
(params.scheme || 'http') + '://' + uri,

0 commit comments

Comments
 (0)