Hi @繁伸 松尾 ,
Since your code is server side, have you tried remote debugging your application? I did come across https://stackoverflow.com/a/13779626/10987310, which contains an example of using body-parser. I've confirmed this does indeed work on a Windows hosted App Service running NodeJS 12LTS.
I used the following code.
var express = require('express');
var bodyParser = require('body-parser')
var router = express.Router();
var jsonParser = bodyParser.json();
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send('respond with a resource');
});
router.post('/one', jsonParser, function(req, res){
console.log(JSON.stringify(req.body));
res.send(req.body.name);
});
module.exports = router;
Regards,
Ryan