kahmali / meteor-restivus

REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
MIT License
544 stars 116 forks source link

Option to allow custom request headers #236

Closed Twisterking closed 8 years ago

Twisterking commented 8 years ago

So there was an issue but it was closed again almost immediately ... Could we have an option to allow custom headers for a request? Afaik, at the moment only the two "X-..." auth headers are allowed. I would like to use some custom ones. Thanks in advance!

kahmali commented 8 years ago

Hi @Twisterking. Great news! You can already accept any headers you want 😃 They're available in any endpoint as this.request.headers["<Custom Header>"]. Here's an example of me accessing the custom auth headers (in the auth.user function). I'm going to close this since I'm fairly certain that will resolve this issue for you. Let me know if I'm mistaken.