Access protection against CSRF attacks.
Hierarchy
- class \Drupal\Core\Access\CsrfRequestHeaderAccessCheck implements AccessCheckInterface
File
- core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php, line 13
Namespace
Drupal\Core\Access
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CsrfRequestHeaderAccessCheck::$csrfToken | protected | property | The token generator. |
CsrfRequestHeaderAccessCheck::$sessionConfiguration | protected | property | The session configuration. |
CsrfRequestHeaderAccessCheck::access | public | function | Checks access. |
CsrfRequestHeaderAccessCheck::applies | public | function | Declares whether the access check applies to a specific route or not. Overrides AccessCheckInterface::applies |
CsrfRequestHeaderAccessCheck::TOKEN_KEY | constant | A string key that will used to designate the token used by this class. | |
CsrfRequestHeaderAccessCheck::__construct | public | function | Constructs a new rest CSRF access check. |
Please login to continue.