We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a4eb3a commit 282295cCopy full SHA for 282295c
1 file changed
components/file-upload/file-uploader.class.ts
@@ -59,6 +59,7 @@ export class FileUploader {
59
this.options = Object.assign(this.options, options);
60
61
this.authToken = options.authToken;
62
+ this.authTokenHeader = options.authTokenHeader || 'Authorization';
63
this.autoUpload = options.autoUpload;
64
this.options.filters.unshift({name: 'queueLimit', fn: this._queueLimitFilter});
65
@@ -344,7 +345,7 @@ export class FileUploader {
344
345
}
346
347
if (this.authToken) {
- xhr.setRequestHeader('Authorization', this.authToken);
348
+ xhr.setRequestHeader(this.authTokenHeader, this.authToken);
349
350
xhr.send(sendable);
351
this._render();
0 commit comments