Send cookies with S3 POST upload (#10562)

This commit is contained in:
Cellivar
2025-11-04 19:26:45 -05:00
committed by GitHub
parent ad0f0b39b8
commit 248cc1ba8b

View File

@@ -88,6 +88,7 @@ export const uploadFile = async (
xhr.addEventListener("loadend", () => {
resolve(xhr.readyState === 4 && xhr.status >= 200 && xhr.status < 400);
});
xhr.withCredentials = true;
xhr.open("POST", data.uploadUrl, true);
xhr.send(formData);
});