Node.js Request Header Parser Hint

What is your hint or solution suggestion?

Don’t forget the power of console.log() every time you get stuck!
In your handler function, try logging the req.headers object to the console and see the properties it has.

app.get("/api/whoami", function (req,res) {

Challenge: Request Header Parser Microservice

Link to the challenge:

1 Like