fix: enable xhr with credentials when putting file

This commit is contained in:
2025-12-16 01:06:40 +00:00
parent ff4c2ee346
commit 8b071604fd

View File

@@ -68,6 +68,7 @@ function putFile({
}): Promise<void> { }): Promise<void> {
return new Promise<void>((resolve, reject) => { return new Promise<void>((resolve, reject) => {
const xhr = new XMLHttpRequest() const xhr = new XMLHttpRequest()
xhr.withCredentials = true
xhr.upload.addEventListener("progress", (e) => { xhr.upload.addEventListener("progress", (e) => {
onProgress(e.loaded / e.total) onProgress(e.loaded / e.total)
}) })