Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

req.body is undefined

var bodyParser = require('body-parser')
var app = express()

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))

// parse application/json
app.use(bodyParser.json())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #undefined
ADD COMMENT
Topic
Name
2+2 =