nuxt-community / axios-module

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

Maximum call stack size exceeded when add header 'X-Api-Key' #379

Open VadimCeretean opened 4 years ago

VadimCeretean commented 4 years ago

I create axios plugin via axios.create, and I add 'X-Api-Key' header from cookies, and when token cookie exist app is crashing with Maximum call stack size exceeded error? anyone know how to fix it?

yoyo837 commented 3 years ago

ref: https://github.com/axios/axios/issues/3009#issuecomment-768004367

farnabaz commented 3 years ago

@yoyo837 Do you mind providing reproduction sample using template.nuxtjs.org?

yoyo837 commented 3 years ago

I've solved it. it's bad code by myself. https://github.com/axios/axios/issues/3009#issuecomment-768105518

yoyo837 commented 3 years ago

@VadimCeretean I guess you are in the same case as me.