CsrfRequestHeaderAccessCheck::TOKEN_KEY

Same name in other branches
  1. 9 core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php \Drupal\Core\Access\CsrfRequestHeaderAccessCheck::TOKEN_KEY
  2. 8.9.x core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php \Drupal\Core\Access\CsrfRequestHeaderAccessCheck::TOKEN_KEY
  3. 10 core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php \Drupal\Core\Access\CsrfRequestHeaderAccessCheck::TOKEN_KEY

A string key that will used to designate the token used by this class.

File

core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php, line 18

Class

CsrfRequestHeaderAccessCheck
Access protection against CSRF attacks.

Namespace

Drupal\Core\Access

Code

const TOKEN_KEY = 'X-CSRF-Token request header';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.