how to redirect app.post express code example Example: express redirect with post data app.post('/', function(req, res) { res.redirect(307, '/test'); });