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
This commit is contained in:
hosseintaromi 2025-07-21 23:49:19 +03:30
parent 3e9bfd3f33
commit bdfbef91ac
1 changed files with 0 additions and 2 deletions

View File

@ -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",
},