Quantcast
Channel: express POST req.body parser is empty - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


express 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>