File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,24 @@ trusted_proxies
99
99
Configures the IP addresses that should be trusted as proxies. For more details,
100
100
see :doc: `/components/http_foundation/trusting_proxies `.
101
101
102
- .. code -block :: yaml
102
+ .. configuration -block ::
103
103
104
- framework :
105
- trusted_proxies : [192.0.0.1]
104
+ .. code-block :: yaml
105
+
106
+ framework :
107
+ trusted_proxies : [192.0.0.1]
108
+
109
+ .. code-block :: xml
110
+
111
+ <framework : config trusted-proxies =" 192.0.0.1" >
112
+ <!-- ... -->
113
+ </framework >
114
+
115
+ .. code-block :: php
116
+
117
+ $container->loadFromExtension('framework', array(
118
+ 'trusted_proxies' => array('192.0.0.1'),
119
+ ));
106
120
107
121
trust_proxy_headers
108
122
~~~~~~~~~~~~~~~~~~~
@@ -113,8 +127,6 @@ trust_proxy_headers
113
127
Symfony 2.3. See `trusted_proxies `_ and :doc: `/components/http_foundation/trusting_proxies `
114
128
for details on how to properly trust proxy data.
115
129
116
- **Deprecated **: This option will be removed in Symfony 2.3. Instead, use
117
-
118
130
**type **: ``Boolean ``
119
131
120
132
Configures if HTTP headers (like ``HTTP_X_FORWARDED_FOR ``, ``X_FORWARDED_PROTO ``, and
You can’t perform that action at this time.
0 commit comments