Skip to content

context.caller.request.ip hidden behind proxy #1277

Description

@antonio0

Background:
#1196
https://community.forestadmin.com/t/access-to-request-headers-in-context/7539

On our deployment, I see this value often being something like "::ffff:10.1.12.32". This seems to be quite obviously an internal IP address from our internal proxies / load balancer.

I did some research in the code and found this comes from Koa framework. From Koa's doc:

request.ip

Request remote address. Supports X-Forwarded-For when app.proxy is true.

Would it be possible to configure or set by default app.proxy=true so we can use the caller.ip as intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions