Skip to content

Commit

Permalink
fix: service to use default credentials mode when cookie auth disabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
blackjid authored Feb 13, 2025
1 parent 44609ae commit b303405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/common/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const baseApiOptions = (queryArgs?: Partial<FetchBaseQueryArgs>) => {
| '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
Expand Down

0 comments on commit b303405

Please sign in to comment.