Lighthouse has a new layout.
Prefer the old one? Return to the old layout,
and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
X-Forwarded-For ignored when "trusted"
#6687
ActionDispatch:RemoteIp ignores X-Forwarded-For if all of the
IPs it contains are considered trusted proxies. This list includes
localhost and all private addresses.
This impacts applications that are hosted behind a reverse proxy
(proxying to localhost) and accessed from a private IP, such as
intranet applications. Aside from making the remote ip detection
incorrect, this causes problems with
ActionDispatch::Request.local?, causing it to incorrectly return
true, which in turn causes default configurations of Rails apps to
show stack traces when they shouldn't.