0
Well I figured a way to do it.. It may help others.. I am still open to better options..
axiosIntance.interceptors.request.use((config) => {
config.headers = {'X-Some-Custom-Header': 'custom-header-value', ...config.headers} ;
// basically the spread operator would preserve the original headers and add to it
});
- [Vuejs]-How to properly load different set of CSS file in different route in Vuejs project
- [Vuejs]-GET http://localhost/resources/js/app.js net::ERR_ABORTED 404 (Not Found)
Source:stackexchange.com