import axios from "axios"
var instance = axios.create({
headers: {
"Content-Type": "application/json",
"Accept": "application/vnd.kangxiinfo.api-2.0+json",
"Cookie": "apiType=1;appType=1;appVer=2.0;cType=1;",
},
withCredentials: true
});
instance.defaults.withCredentials=true
the backend sets the intercept, which is used to request data at the beginning, but it can"t be requested all the time.