我正在使用 Axios 发出发布请求,此调用在响应标头和正文中返回数据。在标头中,它返回一个x-auth-token,我想获取此令牌的值,但它返回:
x-auth-token
undefined is not an object
这是我的做法:
response promise response-headers axios
axios ×1
promise ×1
response ×1
response-headers ×1