
| Current Path : /var/www/html/strat/web/core/modules/system/tests/modules/csrf_test/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/modules/system/tests/modules/csrf_test/csrf_test.routing.yml |
# Tests CSRF request header token protection.
csrf_test.protected:
path: csrf/protected
defaults:
_controller: '\Drupal\csrf_test\Controller\TestController::testMethod'
requirements:
_csrf_request_header_token: 'TRUE'
_method: 'POST'
csrf_test.route_with_csrf_token:
path: csrf/protected/route
defaults:
_controller: '\Drupal\csrf_test\Controller\TestController::testMethod'
requirements:
_permission: 'administer site configuration'
_csrf_token: 'TRUE'