📜  带有身份验证令牌的 Axios Req - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.896000             🧑  作者: Mango

代码示例2
// Send a GET request with the authorization header set to
// the string 'my secret token'
const res = await axios.get('https://httpbin.org/get', {
  headers: {
    'Authorization': 'my secret token'
  }
});