Document X-CSRF-Token and the session token retrieval URL

Created on 2 April 2024, 9 months ago

Problem/Motivation

The services module provides a session token via the static route:
/services/session/token
https://git.drupalcode.org/project/services/-/blob/5.x/services.routing....

Looks like this isn't documented anywhere?
Maybe this URL should be configurable btw?

Further it doesn't seem to be documented how to pass this value as HEADER:
X-CSRF-Token: {TOKEN VALUE}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

5.0

Component

Documentation

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024