Express.js POST req.body empty

后端 未结 4 682
北海茫月
北海茫月 2020-12-06 18:34

So I have the following code in my server.js file that I\'m running with node.js. I\'m using express to handle HTTP requests.

app.post(\'/api/destinations\',         


        
4条回答
  •  既然无缘
    2020-12-06 19:02

    Make sure if you are making the form and inputs in javascript that you append the input to the form. That was my issue.

    yourForm.appendChild(yourInput);
    

提交回复
热议问题