Skip to content

Commit db90640

Browse files
Update security.rst
1 parent 00a2d47 commit db90640

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ will be able to authenticate (e.g. login form, API token, etc).
497497
# the order in which firewalls are defined is very important, as the
498498
# request will be handled by the first firewall whose pattern matches
499499
dev:
500-
pattern: ^/(_profiler|_wdt|assets)/
500+
pattern: ^/_profiler|_wdt|assets|build/ # `assets` is for AssetMapper; `build` is for Webpack Encore
501501
security: false
502502
# a firewall with no pattern should be defined last because it will match all requests
503503
main:
@@ -529,8 +529,8 @@ will be able to authenticate (e.g. login form, API token, etc).
529529
<!-- the order in which firewalls are defined is very important, as the
530530
request will be handled by the first firewall whose pattern matches -->
531531
<firewall name="dev"
532-
pattern="^/(_profiler|_wdt|assets)/"
533-
security="false"/>
532+
pattern="^/_profiler|_wdt|assets|build/"
533+
security="false"/> <!-- `assets` is for AssetMapper; `build` is for Webpack Encore -->
534534
535535
<!-- a firewall with no pattern should be defined last because it will match all requests -->
536536
<firewall name="main"
@@ -555,7 +555,7 @@ will be able to authenticate (e.g. login form, API token, etc).
555555
// the order in which firewalls are defined is very important, as the
556556
// request will be handled by the first firewall whose pattern matches
557557
$security->firewall('dev')
558-
->pattern('^/(_profiler|_wdt|assets)/')
558+
->pattern('^/_profiler|_wdt|assets|build/') // `assets` is for AssetMapper; `build` is for Webpack Encore
559559
->security(false)
560560
;
561561

0 commit comments

Comments
 (0)