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 304304 # the 'role' and 'allow-if' options work like an OR expression, so
305305 # access is granted if the expression is TRUE or the user has ROLE_ADMIN
306306 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')"
308308
309309 .. code-block :: xml
310310
322322 access is granted if the expression is TRUE or the user has ROLE_ADMIN -->
323323 <rule path =" ^/_internal/secure"
324324 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')" />
326326 </config >
327327 </srv : container >
328328
337337 // the 'role' and 'allow-if' options work like an OR expression, so
338338 // access is granted if the expression is TRUE or the user has ROLE_ADMIN
339339 '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')',
341341 ],
342342 ],
343343 ]);
You can’t perform that action at this time.
0 commit comments