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:
parent
3e9bfd3f33
commit
bdfbef91ac
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue