I'm not sure how it worked but I did
axios.defaults.withCredentials = true
In each file that uses import axios