You are here

public static function Request::setTrustedProxies in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::setTrustedProxies()

Sets a list of trusted proxies.

You should only list the reverse proxies that you manage directly.

Parameters

array $proxies A list of trusted proxies:

10 calls to Request::setTrustedProxies()
HttpCache::forward in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Forwards the Request to the backend and returns the Response.
HttpCacheTest::testHttpCacheIsSetAsATrustedProxy in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php
@dataProvider getTrustedProxyData
RequestTest::getRequestInstanceForClientIpsForwardedTests in vendor/symfony/http-foundation/Tests/RequestTest.php
RequestTest::getRequestInstanceForClientIpTests in vendor/symfony/http-foundation/Tests/RequestTest.php
RequestTest::testGetClientIp in vendor/symfony/http-foundation/Tests/RequestTest.php
@dataProvider testGetClientIpsProvider

... See full list

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public static function setTrustedProxies(array $proxies) {
  self::$trustedProxies = $proxies;
}