Skip to content

Commit

Permalink
withcredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed Apr 30, 2018
1 parent 06a5f18 commit a52ef5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,8 @@
var _serviceLoader = function(service, _async) {
logger.debug('LOADING SERVICE DATA {{DATA}} FROM {{URL}}'.replace('{{DATA}}', JSON.stringify(service.data)).replace('{{URL}}', service.url));
var xhr = new XMLHttpRequest();
xhr.withCredentials = service.headers.hasOwnProperty('Authorization');
// xhr.withCredentials = service.headers.hasOwnProperty('Authorization');
xhr.withCredentials = true;
xhr.open(service.method, service.url,true);
for (var header in service.headers){
xhr.setRequestHeader(header, service.headers[header]);
Expand Down

0 comments on commit a52ef5a

Please sign in to comment.