Skip to content
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

get protocol right if there is reverse proxy #28

Closed
wants to merge 1 commit into from

Conversation

minicuper
Copy link

use 'x-forwarded-proto' header to get right protocol if there is a reverse proxy

use 'x-forwarded-proto' header to get right protocol if there is a reverse proxy
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.31%) when pulling e113925 on zag2art:master into 6e815e2 on omsmith:master.

@omsmith
Copy link
Owner

omsmith commented Dec 24, 2014

Thanks for the contribution.

Trusting the header arbitrarily is generally not great though. Probably doesn't have a real vector to be problematic in our situation, but could still lead to; overall, validating requests when it shouldn't. Would rather throw it behind an option (similar to express' trust proxy setting).

If you are using express, enabling said trust proxy setting will get you what you're looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants