How to disable IP Spoofing check in Rails 4 application?
问题 I'm getting the following error on my Rails 4 application: ActionDispatch::RemoteIp::IpSpoofAttackError: IP spoofing attack?! HTTP_CLIENT_IP="xx.xx.xx.xx" HTTP_X_FORWARDED_FOR="xx.xx.xx.xx" We don't need this type of security check, so after some Googling around I found this: https://github.com/rails/rails/issues/10780 When an intermediate proxy inserts the user IP address both in the HTTP_CLIENT_IP and the HTTP_X_FORWARDED_FOR, and this address is private, ActionDispatch::RemoteIp raises an