This commit is contained in:
Iliyan Angelov
2025-11-20 21:06:30 +02:00
parent 44e11520c5
commit a38ab4fa82
77 changed files with 7169 additions and 360 deletions

View File

@@ -62,6 +62,11 @@ apiClient.interceptors.request.use(
config.url = config.url.replace(/\/\/+/, '/');
}
// Handle FormData - remove Content-Type header to let browser set it with boundary
if (config.data instanceof FormData) {
delete config.headers['Content-Type'];
}
// Add authorization token
const token = localStorage.getItem('token');
if (token) {