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

Add options for applications behind reverse proxys #12

Conversation

notableTieView
Copy link

This pull request solves #11
Reverse proxys "override" the client's IP address, which is needed for validating Recaptcha Responses. Proxys usually add a header X-Forwarded-For holding the client's IP address.

Added are two options to security:

  • proxy specifies whether the application is running behind a proxy
  • forwardHeader allows specifying a different header (standard is X-Forwarded-For) for the client's IP

Reverse proxys "override" the client's IP address, which is needed for validating Recaptcha Responses. Proxys usually add a header X-Forwarded-For holding the client's IP address.
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.1%) to 84.014% when pulling 21a6478 on notableTieView:issue-11-running-behind-proxy into 88ea906 on mkopylec:master.

@mkopylec
Copy link
Owner

Fixed in 2.3.0

@mkopylec mkopylec closed this May 13, 2019
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

3 participants