Developer reference
Invalid CSRF token
https://filezar.io/problems/csrf-invalid
HTTP status: 400
API scope: Filezar API and applicable first-party operations
When it happens
An unsafe cookie-authenticated request has no valid CSRF token.
What to do
Fetch /api/v1/auth/csrf using the session cookie, then send its token in X-CSRF-TOKEN.
Example response
Illustrative values only. Responses use application/problem+json.
{
"type": "https://filezar.io/problems/csrf-invalid",
"title": "Invalid CSRF token",
"status": 400,
"detail": "Invalid CSRF token.",
"instance": "urn:s3explorer:trace:example-trace",
"traceId": "example-trace",
"spanId": "example-span"
}
Every problem also uses the common response fields.