Issues with the X-CSRF-TOKEN when i try to create a new user from my javascript frontend application

Created on 17 August 2025, about 2 months ago

Good day community. I keep getting the below error when using a token generated by session/token yet when i test inside Postman and get a token and then use that topken to create a user inside postman. the token works but when the token is generated from my frontend it gives me the below error.

{
"jsonapi": {
"version": "1.0",
"meta": {
"links": {
"self": {
"href": "http://jsonapi.org/format/1.0/"
}
}
}
},
"errors": [
{
"title": "Forbidden",
"status": "403",
"detail": "X-CSRF-Token request header is invalid",
"links": {
"via": {
"href": "https://myurl/jsonapi/user/user"
},
"info": {
"href": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4"
}
}
}
]
}

πŸ’¬ Support request
Status

Active

Component

Code

Created by

πŸ‡ΏπŸ‡¦South Africa gabrielm

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

Comments & Activities

Production build 0.71.5 2024