From 5c22d1592f70e1f3bbf03fca9cc1afe7f2ccbf90 Mon Sep 17 00:00:00 2001 From: CO0LGIRL Date: Wed, 18 Mar 2026 16:29:42 +0300 Subject: [PATCH] fix: change baseURL and refresh path --- src/api/axiosConfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/axiosConfig.js b/src/api/axiosConfig.js index 4058757..5cc0b4c 100644 --- a/src/api/axiosConfig.js +++ b/src/api/axiosConfig.js @@ -1,7 +1,7 @@ import axios from 'axios'; const api = axios.create({ - baseURL: 'http://localhost:8080', + baseURL: '', withCredentials: true, headers: { 'Content-Type': 'application/json', @@ -19,7 +19,7 @@ api.interceptors.response.use( try { - await axios.post('http://localhost:8080/auth/refresh', {}, { withCredentials: true }); + await axios.post('/auth/refresh', {}, { withCredentials: true }); return api(originalRequest);