我正在对节点服务器进行 api 调用。它是一个post call,但我收到错误作为响应,但firebase上的数据发生了变化。
const header : HttpHeaders = new HttpHeaders()
header.append('Content-Type', 'application/x-www-form-urlencoded')
this.http.post('http://localhost:3000/s/getKey', { seqKey : 'invoices' }, {
headers : header
}).subscribe(data => {
console.log(data)
})
更新