【发布时间】:2021-05-28 07:31:43
【问题描述】:
const result = await fetch(https://example.com', {
method: 'POST',
mode: 'no-cors',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"username": "Jochan","countFollowers": 60001}),
});
我正在尝试向第三方 API 发送请求,出现错误,我该如何解决? 错误: POST https://example.com net::ERR_ABORTED 500(内部服务器错误)
【问题讨论】: