axios-module
axios-module copied to clipboard
nuxt/axios options doesn't seem to work
I am using Nuxt/auth and Naxt/axios .
and it set token for every requests perfectly
But for some routes I don't need Credential to be sent
so I do like it (in components) :
get(){
this.$axios.post('/log/list',{},{credential:false,progress:true})
}
But it does not work 👎 (Both options )
I also have plugin for it
plugins/axios
export default function ({ app, $axios, redirect, store }, inject) {
$axios.onError(error => {
console.log('error handling in plugin',error)
})
}
But token is sent again !
what's problem ??
Any update? I have the same problem.
I am using "@nuxtjs/axios": 5.13.6 and "@nuxtjs/auth-next": 5.0.0-1648802546.c9880dc. Axios requests with overridden options, act as global axios client options.
same question