Cookie to head request api problem

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.

clipboard.png

Aug.25,2021

switch to the console tag to see if there are any errors. It feels like cross-domain interception.

Menu