nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.2k stars 245 forks source link

nuxt/axios options doesn't seem to work #581

Open morteza-mortezai opened 2 years ago

morteza-mortezai commented 2 years ago

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 ??

memlucky71 commented 2 years ago

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.

waltcow commented 1 year ago

same question