File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 291
291
# the 'role' and 'allow-if' options work like an OR expression, so
292
292
# access is granted if the expression is TRUE or the user has ROLE_ADMIN
293
293
roles : ' ROLE_ADMIN'
294
- allow_if : " '127.0.0.1' == request.getClientIp() or request.header .has('X-Secure-Access')"
294
+ allow_if : " '127.0.0.1' == request.getClientIp() or request.headers .has('X-Secure-Access')"
295
295
296
296
.. code-block :: xml
297
297
308
308
access is granted if the expression is TRUE or the user has ROLE_ADMIN -->
309
309
<rule path =" ^/_internal/secure"
310
310
role =" ROLE_ADMIN"
311
- allow-if =" '127.0.0.1' == request.getClientIp() or request.header .has('X-Secure-Access')" />
311
+ allow-if =" '127.0.0.1' == request.getClientIp() or request.headers .has('X-Secure-Access')" />
312
312
</config >
313
313
</srv : container >
314
314
320
320
// the 'role' and 'allow-if' options work like an OR expression, so
321
321
// access is granted if the expression is TRUE or the user has ROLE_ADMIN
322
322
'roles' => 'ROLE_ADMIN',
323
- 'allow_if' => '"127.0.0.1" == request.getClientIp() or request.header .has('X-Secure-Access')',
323
+ 'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers .has('X-Secure-Access')',
324
324
],
325
325
],
326
326
You can’t perform that action at this time.
0 commit comments