Fix setting token to header's request
This commit is contained in:
@@ -11,5 +11,5 @@ export const backend = axios.create({
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (existingToken) {
|
if (existingToken) {
|
||||||
backend.defaults.headers['Authorization'] = existingToken;
|
backend.defaults.headers.common['Authorization'] = existingToken;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user