From 854c36d9ab757fe3e5c87ecbb84fd7357e794796 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 26 Nov 2022 23:04:59 +0900 Subject: feat: Always include credentials when fetching --- code/app/src/lib/api/_fetch.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'code/app') diff --git a/code/app/src/lib/api/_fetch.ts b/code/app/src/lib/api/_fetch.ts index 21df208..c29d262 100644 --- a/code/app/src/lib/api/_fetch.ts +++ b/code/app/src/lib/api/_fetch.ts @@ -71,6 +71,7 @@ async function redirect_if_401_async(response: Response): Promise { function make_request_init(method: string, body?: any, signal?: AbortSignal): RequestInit { const init = { method, + credentials: "include", signal, headers: { "X-TimeZone": Temporal.Now.timeZone().id, -- cgit v1.3