fix: try credentials: "omit"
This commit is contained in:
parent
8836522a01
commit
2bbe51221d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue