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

后端 未结 6 2170
甜味超标
甜味超标 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条回答
  •  萌比男神i
    2020-12-05 07:00

    None of these worked for me, so I tricked the receiving client with the following result:

    res.status(200).send('');
    

    Some will say if noscript is on this does not work, but really which site does not use it.

提交回复
热议问题