Vue.prototype is shared between all Vue instances, what will result in a single axios instance to all Vue instances (a singleton).
But in that particular case, a singleton can mess with our autentication logic, since that is being handled into the axios interceptor and this reads the token from the Cookies plugin, what isn't a singleton, what can lead to a data leak.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Vue.prototype
is shared between allVue
instances, what will result in a singleaxios
instance to allVue
instances (a singleton).But in that particular case, a singleton can mess with our autentication logic, since that is being handled into the
axios
interceptor and this reads the token from the Cookies plugin, what isn't a singleton, what can lead to a data leak.