简体   繁体   中英

Is it possible to send a json object in a res.redirect in express?

Any way I can pass a user object in the res.redirect?

 res.redirect("/");

I added authentication later in my code and after successful signin, I am now redirecting to the home route. What do I do?

This below link may help you -

How do I redirect in expressjs while passing some context?

cheers!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM