In hapi.js, I can redirect the request from the 1st route to another using
response.redirect('/home')
How to send some data when redirecting? I tried to set it in the headers
response.redirect('/home').header('x-token', token)
but this data will be lost when it reaches another route.
source share