base commit
This commit is contained in:
@@ -12,6 +12,9 @@ apiClient.interceptors.request.use((config) => {
|
||||
if (!token) return config
|
||||
config.headers = config.headers ?? {}
|
||||
config.headers.Authorization = `Bearer ${token}`
|
||||
if (config.data instanceof FormData) {
|
||||
delete config.headers['Content-Type']
|
||||
}
|
||||
return config
|
||||
} catch {
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user