@@ -473,6 +473,7 @@ The runtime trusts no proxy, as clients can forge most forwarding headers on Sca
473
473
| `getHost()` | The [`host` option](#host) | No `Host` header reaches the function |
474
474
475
475
`X-Forwarded-For` (the client's value is kept in front), `X-Forwarded-Host`, `X-Forwarded-Port` and `Forwarded` are passed through from the client: they reach the Application as plain headers, and nothing trusts them.
476
+Headers whose name holds an underscore (`X_Real_Ip`) are dropped, as nginx and Apache do, since PHP would read them as the platform's ones.
476
477
477
478
> [!CAUTION]
478
479
> Do not configure `framework.trusted_proxies`: the client is already resolved, and trusting `REMOTE_ADDR` or private ranges would make Symfony trust those forgeable headers again.
@@ -473,6 +473,7 @@ The runtime trusts no proxy, as clients can forge most forwarding headers on Sca
473
| `getHost()` | The [`host` option](#host) | No `Host` header reaches the function |
473
| `getHost()` | The [`host` option](#host) | No `Host` header reaches the function |
474
474
475
`X-Forwarded-For` (the client's value is kept in front), `X-Forwarded-Host`, `X-Forwarded-Port` and `Forwarded` are passed through from the client: they reach the Application as plain headers, and nothing trusts them.
475
`X-Forwarded-For` (the client's value is kept in front), `X-Forwarded-Host`, `X-Forwarded-Port` and `Forwarded` are passed through from the client: they reach the Application as plain headers, and nothing trusts them.
476
+Headers whose name holds an underscore (`X_Real_Ip`) are dropped, as nginx and Apache do, since PHP would read them as the platform's ones.
476
477
477
> [!CAUTION]
478
> [!CAUTION]
478
> Do not configure `framework.trusted_proxies`: the client is already resolved, and trusting `REMOTE_ADDR` or private ranges would make Symfony trust those forgeable headers again.
479
> Do not configure `framework.trusted_proxies`: the client is already resolved, and trusting `REMOTE_ADDR` or private ranges would make Symfony trust those forgeable headers again.
One first-party cookie so a repeat visit isn't counted twice. No cross-site tracking, nothing stored until you accept. Cookie Policy.