【发布时间】:2020-11-19 13:09:12
【问题描述】:
const headers = {
Authorization: 'Bearer fui3h73bjflkbf-hdug37o8'
}
const body = { "name": "example.com", "account": { "id": "72672yhhuo2nu2" }, "jump_start": true, "type": "full" }
let url = 'https://api.cloudflare.com/client/v4/zones'
axios.post(
url,
body,
headers
).then(console.log).catch(console.log);
有什么可以帮助我的吗?我不断收到来自 Axios 的 400 错误请求 - 我可以通过 GET 请求传递相同的令牌并确认其工作正常
【问题讨论】:
标签: javascript axios