0

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?

1 Answer 1

1

Those headers aren't there.

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

Sign up to request clarification or add additional context in comments.

1 Comment

Ok, so upon closer inspection you're right. Odd thing is that what I'm sending to my server is a $.ajax() request with the type set to "GET", yet the request that shows up at the server is an OPTIONS type. No idea why this is happening.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.