Init the headers in iedavclient.js
This commit is contained in:
parent
ae50e7236f
commit
4a2fb1b4cb
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var xhr = this.xhrProvider();
|
var xhr = this.xhrProvider();
|
||||||
|
headers = headers || {};
|
||||||
|
|
||||||
if (this.userName) {
|
if (this.userName) {
|
||||||
headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password);
|
headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password);
|
||||||
|
|
Loading…
Reference in New Issue