From bdfbef91aca2bbb261a445045b312e3f54ea1094 Mon Sep 17 00:00:00 2001 From: hosseintaromi Date: Mon, 21 Jul 2025 23:49:19 +0330 Subject: [PATCH] fix(utils): remove withCredentials to fix CORS issue - Remove withCredentials from axios config to prevent CORS errors - API authentication will be handled via Authorization header - Tested working with Postman curl command --- src/utils/baseHttpService.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/utils/baseHttpService.ts b/src/utils/baseHttpService.ts index a10b0f8..fde8701 100644 --- a/src/utils/baseHttpService.ts +++ b/src/utils/baseHttpService.ts @@ -8,11 +8,9 @@ import { postLogout } from "@/pages/auth/core/_requests"; const baseURL = API_GATE_WAY; axios.defaults.baseURL = API_GATE_WAY; axios.defaults.timeout = REQUEST_TIMEOUT; -axios.defaults.withCredentials = true; const api = axios.create({ baseURL, - withCredentials: true, headers: { "Content-Type": "application/json", },