fix(webui): send same-origin cookies with uploads

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David KlaperandCopilot authored and chengyongru committed 2026-10-14 16:12:50 +08:00
1 parent 061b19afe1
commit 2732e2b3ce
3 files changed
+4 -3

No files matched your search

+1
View File
@@ -2444,6 +2444,7 @@ describe("binary attachment transport", () => {
expect(request.method).toBe("POST");
expect(request.headers.Authorization).toBe("Bearer upload-capability");
expect(request.redirect).toBe("error");
expect(request.credentials).toBe("same-origin");
expect(await request.body.text()).toBe(raw);
const frame = socket.sent.find((value) => value.includes("opaque-ref"))!;
expect(frame.length).toBeLessThan(1024);