Skip to content

Commit 441e766

Browse files
committed
removed deprecated trust_proxy_headers docs
1 parent f3c431f commit 441e766

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

reference/configuration/framework.rst

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Configuration
1818
* `secret`_
1919
* `ide`_
2020
* `test`_
21-
* `trust_proxy_headers`_
21+
* `trusted_proxies`_
2222
* `form`_
2323
* enabled
2424
* `csrf_protection`_
@@ -117,23 +117,6 @@ see :doc:`/components/http_foundation/trusting_proxies`.
117117
'trusted_proxies' => array('192.0.0.1'),
118118
));
119119
120-
trust_proxy_headers
121-
~~~~~~~~~~~~~~~~~~~
122-
123-
.. caution::
124-
125-
The ``trust_proxy_headers`` option is deprecated and will be removed in
126-
Symfony 2.3. See `trusted_proxies`_ and :doc:`/components/http_foundation/trusting_proxies`
127-
for details on how to properly trust proxy data.
128-
129-
**type**: ``Boolean``
130-
131-
Configures if HTTP headers (like ``HTTP_X_FORWARDED_FOR``, ``X_FORWARDED_PROTO``, and
132-
``X_FORWARDED_HOST``) are trusted as an indication for an SSL connection. By default, it is
133-
set to ``false`` and only SSL_HTTPS connections are indicated as secure.
134-
135-
You should enable this setting if your application is behind a reverse proxy.
136-
137120
.. _reference-framework-form:
138121

139122
form
@@ -379,7 +362,6 @@ Full Default Configuration
379362
framework:
380363
charset: ~
381364
secret: ~
382-
trust_proxy_headers: false
383365
trusted_proxies: []
384366
ide: ~
385367
test: ~

0 commit comments

Comments
 (0)