I have problem with axios interceptors. I try set header for jwt using interceptors but nothing work so I changed my code and added only console.log to this code. When I open console in Chrome nothing is displayed. Do you have any idea what the problem could be?
import axios from 'axios'
const baseURL = 'http://localhost:8080'
const instance = axios.create({
baseURL,
params: {}
})
instance.interceptors.request.use(function (config) {
console.log('test');
return config;
}, function (error) {
return Promise.reject(error)
})
export default instance