Stephen Collins
Stephen Collins

Reputation: 3653

Getting specific headers in Node.js

I'm making a simple Node.js app and need to be able to check the Authorization header of a request. The problem is that all I get in terms of that header is the fact that it's there. The headers property of my request only says access-control-request-headers : "accept, authorization, content-type" and nothing else about the content of those headers. Does Node not look that far into the request?

Upvotes: 0

Views: 81

Answers (1)

SLaks
SLaks

Reputation: 888205

Those headers aren't there.

You're seeing a single header named Access-Control-Request-Headers, with a value of "accept, authorization, content-type".

Upvotes: 1

Related Questions