See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
Since Rack 3 (rack/rack#1834) the Forwarded is supported (and preferred).
Sinatra does not make use of this:
|
def forwarded? |
|
@env.include? 'HTTP_X_FORWARDED_HOST' |
|
end |
Which one to prefer should probably be exposed to the end-user.