XCsrfToken header with REST api

Ok so I got the cookie, but idk where I put the x-csrf-token? What is the header with REST?

POST https://auth.roblox.com/v2/logout
Cookie: .ROBLOSECURITY=censored
Authorization: doesn't work
x-csrf-token: doesn't work
xcsrftoken: doesn't work

Ok well I got the override:

POST https://auth.roblox.com/v2/logout
Cookie: .ROBLOSECURITY=
Authorization: X-CSRF-TOKEN

But I have no idea where to go from here with this response:

{
  "errors": [
    {
      "code": 0,
      "message": "Token Validation Failed"
    }
  ]
}

Hello! So what are you trying to do exactly with this? What’s your end goal?

Rip I solved it by just putting the raw header:

X-CSRF-TOKEN: token

and it worked, I basically just want to use the API with Authorization

2 Likes