In express how do I redirect a user to an external url?

后端 未结 6 2166
甜味超标
甜味超标 2020-12-05 06:28

I have a payment system using node.js and braintree, when the payment is successful I want to send the user to the back end. My back end is setup elsewhere.

I have

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 07:09

    redirect a user to an external URL is pretty simple.

    res.redirect('enter the URL here');
    

提交回复
热议问题