updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user