我有一個簡單的愛可信POST請求:愛可信POST請求通過了所有PARAMS爲一體鍵
const data = JSON.stringify({
to: receiver,
from: sender,
body: message
});
axios.post(window.location.origin + '/sms/outgoing', data)
我的問題是,我的API讀取請求體,因爲這:
{ '{"to":"12345","from":"54321","body":"message"}': '' }
當我想要它是這樣的:
{"to":"12345","from":"54321","body":"message"}
我在哪裏出錯了?
當你不把你的字符串化TA? – helllomatt
@helllomatt身體是空的 – adc17