fix: try credentials: "omit"

This commit is contained in:
Stephen Zhou 2025-06-26 21:03:23 +08:00
parent 8836522a01
commit 2bbe51221d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,
}),