You are here

protected static property Request::$trustedHeaders in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::trustedHeaders

Names for headers that can be trusted when using trusted proxies.

The FORWARDED header is the standard as of rfc7239.

The other headers are non-standard, but widely used by popular reverse proxies (like Apache mod_proxy or Amazon EC2).

File

vendor/symfony/http-foundation/Request.php, line 72

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

protected static $trustedHeaders = array(
  self::HEADER_FORWARDED => 'FORWARDED',
  self::HEADER_CLIENT_IP => 'X_FORWARDED_FOR',
  self::HEADER_CLIENT_HOST => 'X_FORWARDED_HOST',
  self::HEADER_CLIENT_PROTO => 'X_FORWARDED_PROTO',
  self::HEADER_CLIENT_PORT => 'X_FORWARDED_PORT',
);