I am trying to pass csrf_token or session token without an additional request.
I am able to get token using
I am observing a different behavior here.
The response of routing service endpoint
Drupal::service('csrf_token')->get() are different in Drupal 9.
Why the above mentioned methods give different values. The
CsrfTokenController::csrfToken class method is hit by
How can I get
/session/token in module?
Which other service can give
/session/token equal response making CSRF-TOKEN validation successful?