What is the reason why the get request was successful but did not return a value?

the following figure is the interface document:

clipboard.png


clipboard.png

clipboard.png

clipboard.png

and I set up to bring token to every request

axios.interceptors.request.use(config => {
    if (common.getCookie("token")) { 
        console.log(common.getCookie("token")); //
        config.headers.Authorization = common.getCookie("token");
    }
    return config;
},error=>{
    return Promise.reject(err);
})

at first I thought it was a cross-domain problem, but the back end said it had already dealt with it. So we have been stuck asking for help on this issue.


  • 1. Cross-domain
  • II. The data type of the document is post, but the request method is get.

this is how I pass parameters in get mode, for reference

clipboard.png


header
Content-Type Content-type


formData,get

clipboard.png


add_header Access-Control-Allow-Headers "Authorization"

Menu