Skip to content

Commit 8769f0e

Browse files
committed
1 parent a0f8dea commit 8769f0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/nsNextcloud.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ NextcloudFileUploader.prototype = {
800800
req.setRequestHeader('Content-Type', "application/x-www-form-urlencoded");
801801
req.setRequestHeader("Content-Length", String(formData.length));
802802
req.setRequestHeader("OCS-APIREQUEST", "true");
803+
req.setRequestHeader("Authorization",
804+
"Basic " + btoa(this.nextcloud._userName + ':' + this.nextcloud._password));
803805

804806
req.onload = function () {
805807

0 commit comments

Comments
 (0)