From b30340578e0f34d87fee7172fc7697f1602d6a22 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Donoso Date: Thu, 13 Feb 2025 14:23:22 -0300 Subject: [PATCH] fix: service to use default credentials mode when cookie auth disabled (#5079) --- frontend/common/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/common/service.ts b/frontend/common/service.ts index 8a2f2817f547..68c3577c1bee 100644 --- a/frontend/common/service.ts +++ b/frontend/common/service.ts @@ -16,7 +16,7 @@ export const baseApiOptions = (queryArgs?: Partial) => { | 'extractRehydrationInfo' > = { baseQuery: fetchBaseQuery({ - credentials: Project.cookieAuthEnabled ? 'include' : 'omit', // 'include' for cookies, 'omit' if not + credentials: Project.cookieAuthEnabled ? 'include' : undefined, baseUrl: Project.api, prepareHeaders: async (headers, { endpoint, getState }) => { // eslint-disable-next-line @typescript-eslint/no-unused-vars