public static function Request::setTrustedProxies

Sets a list of trusted proxies.

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

@api

Parameters

array $proxies A list of trusted proxies:

6 calls to Request::setTrustedProxies()
RequestTest::getRequestInstanceForClientIpTests in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
RequestTest::testGetClientIp in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
@dataProvider testGetClientIpsProvider
RequestTest::testGetClientIps in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
@dataProvider testGetClientIpsProvider
RequestTest::testGetPort in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
RequestTest::testOverrideGlobals in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php

... See full list

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 474

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

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