Tuesday 19 June 2018

How to use express for sending request through headers?

So I'm sending https request through express using app.get(), the parameters it requires originally are the link and function which takes request and response as arguments. But now the api to which I'm making call requires headers containing session token and id which needs to be passed through the URL in app.get(). Is there any way to pass the headers using app.get()?Thank you in advance!

Submitted June 19, 2018 at 03:15PM by bhavitvya

No comments:

Post a Comment