File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ exports.XMLHttpRequest = function() {
110
110
this . responseXML = "" ;
111
111
this . status = null ;
112
112
this . statusText = null ;
113
+
114
+ // Whether cross-site Access-Control requests should be made using
115
+ // credentials such as cookies or authorization headers
116
+ this . withCredentials = false ;
113
117
114
118
/**
115
119
* Private methods
@@ -364,7 +368,8 @@ exports.XMLHttpRequest = function() {
364
368
path : uri ,
365
369
method : settings . method ,
366
370
headers : headers ,
367
- agent : false
371
+ agent : false ,
372
+ withCredentials : self . withCredentials
368
373
} ;
369
374
370
375
// Reset error flag
@@ -400,7 +405,8 @@ exports.XMLHttpRequest = function() {
400
405
port : url . port ,
401
406
path : url . path ,
402
407
method : response . statusCode === 303 ? "GET" : settings . method ,
403
- headers : headers
408
+ headers : headers ,
409
+ withCredentials : self . withCredentials
404
410
} ;
405
411
406
412
// Issue the new request
You can’t perform that action at this time.
0 commit comments