Redirect URL in NodeJs

0

I'm trying to redirect my login to a new site after the user validation function. After the redirection to the url in the browse is from the url where the login was: link " link , should be just that part: link

    request('http://54.93.154.122:2801/'+doc.voxyid, function (error, response, body) {
  if (!error && response.statusCode == 200) {
    console.log(body);
    //console.log(error)
    res.redirect(JSON.stringify(body))
    
asked by anonymous 03.06.2017 / 01:35

1 answer

0

Personal discovered the problem: res.redirect (JSON.stringify (body))

Rewriting: res.redirect (body), that's how it worked!

    
03.06.2017 / 10:06