axios post请求,带参数默认content-type:‘application/json;charset=UTF-8’,
如果没有参数'Content-Type':'application/x-www-form-urlencoded',
get请求默认没有content-type。因为它是简单请求
设置axios的content-type headers: {'X-Custom-Header': 'foobar'}
axios post请求,带参数默认content-type:‘application/json;charset=UTF-8’,
如果没有参数'Content-Type':'application/x-www-form-urlencoded',
get请求默认没有content-type。因为它是简单请求
设置axios的content-type headers: {'X-Custom-Header': 'foobar'}