Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
morteza-mortezai opened this issue Jul 3, 2022 · 2 comments
Open

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

morteza-mortezai opened this issue Jul 3, 2022 · 2 comments

Comments

@morteza-mortezai
Copy link

morteza-mortezai commented Jul 3, 2022

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
Copy link

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
Copy link

waltcow commented Mar 17, 2023

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants