Fix setting token to header's request

This commit is contained in:
rui hildt 2020-08-23 11:42:12 +02:00
parent bc245eff51
commit c7afdff759

View File

@ -11,5 +11,5 @@ export const backend = axios.create({
});
if (existingToken) {
backend.defaults.headers['Authorization'] = existingToken;
backend.defaults.headers.common['Authorization'] = existingToken;
}