📜  带有标题的 axios 帖子 - Javascript 代码示例

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

代码示例5
axios.post(
'https://example.com/postSomething', 
{ // this is the body
 email: varEmail, 
 password: varPassword
},
{
  headers: {
    Authorization: 'Bearer ' + varToken
  }
})