Quantcast
Channel: express POST req.body parser is empty - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Lukasz Wiktor for express POST req.body parser is empty

$
0
0

Add Content-Type header to your request in angular:

$http.post('http://localhost:8888/getsolution/', parameters, {    headers: {'Content-Type': 'application/json'    }})

Viewing all articles
Browse latest Browse all 2

Trending Articles



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