diff --git a/security.rst b/security.rst index fc0cf9c9377..d0af7ac7e93 100644 --- a/security.rst +++ b/security.rst @@ -497,7 +497,7 @@ will be able to authenticate (e.g. login form, API token, etc). # the order in which firewalls are defined is very important, as the # request will be handled by the first firewall whose pattern matches dev: - pattern: ^/(_(profiler|wdt)|css|images|js)/ + pattern: ^/_profiler|_wdt|assets|build/ # `assets` is for AssetMapper; `build` is for Webpack Encore security: false # a firewall with no pattern should be defined last because it will match all requests main: @@ -529,8 +529,8 @@ will be able to authenticate (e.g. login form, API token, etc). + pattern="^/_profiler|_wdt|assets|build/" + security="false"/> firewall('dev') - ->pattern('^/(_(profiler|wdt)|css|images|js)/') + ->pattern('^/(_profiler|_wdt|assets|build)/') // `assets` is for AssetMapper; `build` is for Webpack Encore ->security(false) ; @@ -598,9 +598,7 @@ don't accidentally block Symfony's dev tools - which live under URLs like pattern: - ^/_profiler/ - ^/_wdt/ - - ^/css/ - - ^/images/ - - ^/js/ + - ^/assets/ # ... .. code-block:: php @@ -614,9 +612,7 @@ don't accidentally block Symfony's dev tools - which live under URLs like ->pattern([ '^/_profiler/', '^/_wdt/', - '^/css/', - '^/images/', - '^/js/', + '^/assets/', ]) ->security(false) ; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy