axios.defaults.headers.common[csrf.headerKey]=csrf.token;// Maintain a global counter for active requests// see: spec/support/wait_for_requests.rbaxios.interceptors.request.use((config)=>{window.activeVueResources=window.activeVueResources||0;window.activeVueResources+=1;returnconfig;});// Remove the global counteraxios.interceptors.response.use((config)=>{window.activeVueResources-=1;returnconfig;});exportdefaultaxios;