Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(api): add credentials include to fetch for cross-origin cookie storage

yushend57b98fc789e
diff --git a/apps/web/shared/api/client.ts b/apps/web/shared/api/client.ts
index 9b41a9bd0e..2419d7bcff 100644
--- a/apps/web/shared/api/client.ts
+++ b/apps/web/shared/api/client.ts
@@ -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) {