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 291291 # the 'role' and 'allow-if' options work like an OR expression, so
292292 # access is granted if the expression is TRUE or the user has ROLE_ADMIN
293293 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')"
295295
296296 .. code-block :: xml
297297
308308 access is granted if the expression is TRUE or the user has ROLE_ADMIN -->
309309 <rule path =" ^/_internal/secure"
310310 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')" />
312312 </config >
313313 </srv : container >
314314
320320 // the 'role' and 'allow-if' options work like an OR expression, so
321321 // access is granted if the expression is TRUE or the user has ROLE_ADMIN
322322 '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')',
324324 ],
325325 ],
326326
You can’t perform that action at this time.
0 commit comments