diff --git a/src/boot/axios.ts b/src/boot/axios.ts index 0e0ba44..ec6432d 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -54,7 +54,9 @@ export default boot(({ router }) => { api.interceptors.request.use((config) => { const store = useMainStore(); if (store.session?.token) { - config.headers = { Authorization: 'Bearer ' + store.session.token }; + config.headers = Object.assign(config.headers || {}, { + Authorization: `Bearer ${store.session.token}`, + }); } // Minify JSON requests if (