From 2bbe51221dcea72c963a45c8afceee71f785d708 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 26 Jun 2025 21:03:23 +0800 Subject: [PATCH] fix: try credentials: "omit" --- apps/mobile/src/lib/api-fetch.ts | 2 +- packages/internal/store/src/entry/store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/lib/api-fetch.ts b/apps/mobile/src/lib/api-fetch.ts index 0ea57a528..5bb94ddcd 100644 --- a/apps/mobile/src/lib/api-fetch.ts +++ b/apps/mobile/src/lib/api-fetch.ts @@ -12,7 +12,7 @@ import { proxyEnv } from "./proxy-env" export const apiFetch = ofetch.create({ retry: false, - + credentials: "omit", baseURL: proxyEnv.API_URL, onRequest: async (ctx) => { const { options, request } = ctx diff --git a/packages/internal/store/src/entry/store.ts b/packages/internal/store/src/entry/store.ts index 555eb57f7..c079f38e0 100644 --- a/packages/internal/store/src/entry/store.ts +++ b/packages/internal/store/src/entry/store.ts @@ -606,7 +606,7 @@ class EntrySyncServices { cookie: options.cookie, } : undefined, - credentials: options?.cookie ? undefined : "include", + credentials: options?.cookie ? "omit" : "include", body: JSON.stringify({ ids: nextIds, }),