Merge pull request #1 from silverstripe-security/pulls/master/ss-2018-022

[SS-2018-022] ADD ConfirmationMiddleware exceptions for the dev routes
This commit is contained in:
Aaron Carlino 2019-06-12 09:25:59 +12:00 committed by GitHub
commit d8452c681a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,3 +12,14 @@ SilverStripe\Dev\DevelopmentAdmin:
controller: Silverstripe\EnvironmentCheck\Controllers\DevCheckController
links:
check: 'Run registered environment checks and display their status'
---
Name: environmentcheckroutes-dev_urls-confirmation-exceptions
After:
- 'dev_urls-confirmation-middleware'
---
SilverStripe\Core\Injector\Injector:
DevUrlsConfirmationMiddleware:
properties:
Bypasses:
- '%$SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartsWith("dev/check")'