Merge pull request #227 from multica-ai/fix/fetch-credentials-include

fix(api): add credentials include for cross-origin cookie storage
This commit is contained in:
LinYushen 2026-03-31 16:22:54 +08:00 committed by GitHub
commit 2c76a0b905
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,6 +107,7 @@ export class ApiClient {
const res = await fetch(`${this.baseUrl}${path}`, {
...init,
headers,
credentials: "include",
});
if (!res.ok) {
@ -527,6 +528,7 @@ export class ApiClient {
method: "POST",
headers: this.authHeaders(),
body: formData,
credentials: "include",
});
if (!res.ok) {