New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not a passenger issue (was: No secure header in meteor) #1863
Comments
This is not an issue with Passenger, rather with meteor. You can see on this page: https://docs.meteor.com/api/connections.html#Meteor-onConnection that You can patch sockjs in order to see that our headers do in fact get passed to meteor. The file to patch in your bundle is: It would be a good idea to ask the meteor community for the 'proper' way to allow for custom header whitelisting. As it stands now all I could find was a pull request to allow overriding the sockjs whitelist: sockjs/sockjs-node#202 |
Take a look on Meteor.onConnection() docs:
|
I'm using Passenger + Nginx + Meteor and inside meteor methods I use
this.connection.httpHeaders
to get http headers. I want to get client IP and I'm able to usex-forwarded-for
to get it. As passenger recommends I want to use the secure header!~Passenger-Client-Address
but there is no sign of this header insidethis.connection.httpHeaders
.Is there any specific configuration needed for these headers to be available inside a meteor method ?
And by the way here are some version numbers :
Passenger 5.0.30
Nginx 1.10
Meteor 1.4
OS : Debian jessie
The text was updated successfully, but these errors were encountered: