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

Ensure that signature validation works behind SSL and reverse proxy #43

Closed
wants to merge 1 commit into from

Conversation

nicolaasmatthijs
Copy link

When running Apache as a reverse proxy for a Node.js app using SSL, signature validation fails because of a protocol mismatch. As Apache is proxying to Node.js, the protocol on the request object will be http instead of https, causing signature validation to fail as the original URL contains https. Therefore, we check if the x-forwarded-proto header is present on the request and use that if it is. 'x-forwarded-proto is the standard header for specifying the forwarded protocol (https://tools.ietf.org/html/rfc7239 --> 5.4. Forwarded Proto)

@omsmith
Copy link
Owner

omsmith commented Mar 27, 2015

See #28.

If you still find it necessary, I'd like it to be configurable, default off.

@nicolaasmatthijs
Copy link
Author

That fixes my problem. Thanks for the pointer.

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

Successfully merging this pull request may close these issues.

None yet

2 participants