From 8b071604fd2cb49edd0a0f339b9286b85286c942 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Tue, 16 Dec 2025 01:06:40 +0000 Subject: [PATCH] fix: enable xhr with credentials when putting file --- apps/drive-web/src/files/upload.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/drive-web/src/files/upload.ts b/apps/drive-web/src/files/upload.ts index 8144158..af469cc 100644 --- a/apps/drive-web/src/files/upload.ts +++ b/apps/drive-web/src/files/upload.ts @@ -68,6 +68,7 @@ function putFile({ }): Promise { return new Promise((resolve, reject) => { const xhr = new XMLHttpRequest() + xhr.withCredentials = true xhr.upload.addEventListener("progress", (e) => { onProgress(e.loaded / e.total) })