Skip to content

Commit 46d4b9d

Browse files
committed
hotfix: api 호출 쿠키 셋업 가능하게 핫픽스
1 parent 4790109 commit 46d4b9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/apis/instance.request.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export const instance = async <I, R>(
6060
...init,
6161
headers: cookieHeader
6262
? {
63-
...init?.headers,
64-
Cookie: cookieHeader,
65-
}
63+
...init?.headers,
64+
Cookie: cookieHeader,
65+
}
6666
: init?.headers,
6767
body: init?.body ? JSON.stringify(init.body) : undefined,
6868
signal: AbortSignal.timeout
6969
? AbortSignal.timeout(Number(env.ABORT_MS))
7070
: abortPolyfill(Number(env.ABORT_MS)),
71-
credentials: input !== '/login' ? 'include' : 'omit',
71+
credentials: 'include',
7272
cache: 'no-store',
7373
});
7474

0 commit comments

Comments
 (0)