Skip to content

Commit

Permalink
Retry to set withCredentials and withXSRFToken only in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Alf-Melmac committed Nov 16, 2023
1 parent 640d930 commit 65da465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/slotbotServerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {getBackendUrl} from '../utils/urlHelper';

const slotbotServerClient = axios.create({
baseURL: getBackendUrl(),
withCredentials: true,
withXSRFToken: true,
withCredentials: import.meta.env.DEV ? true : undefined,
withXSRFToken: import.meta.env.DEV ? true : undefined,
});

slotbotServerClient.interceptors.response.use(
Expand Down

0 comments on commit 65da465

Please sign in to comment.