@@ -497,7 +497,7 @@ will be able to authenticate (e.g. login form, API token, etc).
497
497
# the order in which firewalls are defined is very important, as the
498
498
# request will be handled by the first firewall whose pattern matches
499
499
dev :
500
- pattern : ^/( _profiler|_wdt|assets)/
500
+ pattern : ^/_profiler|_wdt|assets|build/ # `assets` is for AssetMapper; `build` is for Webpack Encore
501
501
security : false
502
502
# a firewall with no pattern should be defined last because it will match all requests
503
503
main :
@@ -529,8 +529,8 @@ will be able to authenticate (e.g. login form, API token, etc).
529
529
<!-- the order in which firewalls are defined is very important, as the
530
530
request will be handled by the first firewall whose pattern matches -->
531
531
<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 -->
534
534
535
535
<!-- a firewall with no pattern should be defined last because it will match all requests -->
536
536
<firewall name =" main"
@@ -555,7 +555,7 @@ will be able to authenticate (e.g. login form, API token, etc).
555
555
// the order in which firewalls are defined is very important, as the
556
556
// request will be handled by the first firewall whose pattern matches
557
557
$security->firewall('dev')
558
- ->pattern('^/( _profiler|_wdt|assets) /')
558
+ ->pattern('^/_profiler|_wdt|assets|build /') // `assets` is for AssetMapper; `build` is for Webpack Encore
559
559
->security(false)
560
560
;
561
561
0 commit comments