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
@@ -363,7 +367,8 @@ exports.XMLHttpRequest = function() {
363
367
path : uri ,
364
368
method : settings . method ,
365
369
headers : headers ,
366
- agent : false
370
+ agent : false ,
371
+ withCredentials : self . withCredentials
367
372
} ;
368
373
369
374
// Reset error flag
@@ -399,7 +404,8 @@ exports.XMLHttpRequest = function() {
399
404
port : url . port ,
400
405
path : url . path ,
401
406
method : response . statusCode === 303 ? "GET" : settings . method ,
402
- headers : headers
407
+ headers : headers ,
408
+ withCredentials : self . withCredentials
403
409
} ;
404
410
405
411
// Issue the new request
You can’t perform that action at this time.
0 commit comments