@@ -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)|css|images|js )/
500
+ pattern : ^/(_profiler|_wdt|assets )/
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,7 +529,7 @@ 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)|css|images|js )/"
532
+ pattern =" ^/(_profiler|_wdt|assets )/"
533
533
security =" false" />
534
534
535
535
<!-- a firewall with no pattern should be defined last because it will match all requests -->
@@ -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)|css|images|js )/')
558
+ ->pattern('^/(_profiler|_wdt|assets )/')
559
559
->security(false)
560
560
;
561
561
@@ -598,9 +598,7 @@ don't accidentally block Symfony's dev tools - which live under URLs like
598
598
pattern :
599
599
- ^/_profiler/
600
600
- ^/_wdt/
601
- - ^/css/
602
- - ^/images/
603
- - ^/js/
601
+ - ^/assets/
604
602
# ...
605
603
606
604
.. code-block :: php
0 commit comments