axios-module icon indicating copy to clipboard operation
axios-module copied to clipboard

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

Open VadimCeretean opened this issue 4 years ago • 4 comments

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?

VadimCeretean avatar Jun 12 '20 13:06 VadimCeretean

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

yoyo837 avatar Jan 27 '21 07:01 yoyo837

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

farnabaz avatar Feb 03 '21 15:02 farnabaz

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

yoyo837 avatar Feb 03 '21 15:02 yoyo837

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

yoyo837 avatar Feb 03 '21 15:02 yoyo837