↧
Answer by Lukasz Wiktor for express POST req.body parser is empty
Add Content-Type header to your request in angular:$http.post('http://localhost:8888/getsolution/', parameters, { headers: {'Content-Type': 'application/json' }})
View Articleexpress POST req.body parser is empty
I saw similar issues on Stack Overflow and found solution to use of: app.use(bodyParser.urlencoded({ extended: true }));app.use(bodyParser.json());But while printing log req.body is blank.app.js...
View Article