📜  axios 发送不记名令牌 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:20.130000             🧑  作者: Mango

代码示例4
const config = {
    headers: { Authorization: `Bearer ${token}` }
};

const bodyParameters = {
   key: "value"
};

Axios.post( 
  'http://localhost:8000/api/v1/get_token_payloads',
  bodyParameters,
  config
).then(console.log).catch(console.log);