Monday 8 May 2017

Jade get nodejs view using localStorage

am using nodejs backend with jade for views and passportJS to auth the request

i have some service in nodejs that render a view like below:-

index.get('/',passport.authenticate('token'),function (req,res,next) {


console.log("++++++++"+JSON.stringify(req.headers));

res.render('login');

});

so i want to send a header (token) from jade to service then render the view

is there any way to do that ?!

thank you



via Faisal

No comments:

Post a Comment