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 304
304
# the 'role' and 'allow-if' options work like an OR expression, so
305
305
# access is granted if the expression is TRUE or the user has ROLE_ADMIN
306
306
roles : ' ROLE_ADMIN'
307
- allow_if : " '127.0.0.1' == request.getClientIp() or request.header .has('X-Secure-Access')"
307
+ allow_if : " '127.0.0.1' == request.getClientIp() or request.headers .has('X-Secure-Access')"
308
308
309
309
.. code-block :: xml
310
310
322
322
access is granted if the expression is TRUE or the user has ROLE_ADMIN -->
323
323
<rule path =" ^/_internal/secure"
324
324
role =" ROLE_ADMIN"
325
- allow-if =" '127.0.0.1' == request.getClientIp() or request.header .has('X-Secure-Access')" />
325
+ allow-if =" '127.0.0.1' == request.getClientIp() or request.headers .has('X-Secure-Access')" />
326
326
</config >
327
327
</srv : container >
328
328
337
337
// the 'role' and 'allow-if' options work like an OR expression, so
338
338
// access is granted if the expression is TRUE or the user has ROLE_ADMIN
339
339
'roles' => 'ROLE_ADMIN',
340
- 'allow_if' => '"127.0.0.1" == request.getClientIp() or request.header .has('X-Secure-Access')',
340
+ 'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers .has('X-Secure-Access')',
341
341
],
342
342
],
343
343
]);
You can’t perform that action at this time.
0 commit comments