csrf_invalid: The request did not come from this deployment's own page

Three places answer this code:

What to do

On the wire

HTTP 403. On the human payment route the error type is authentication_error:

{
  "error": "unauthorized",
  "errorDetail": {
    "type": "authentication_error",
    "code": "csrf_invalid",
    "message": "the change did not come from this deployment's console (fail closed)",
    "param": null,
    "doc_url": "…/developers/human-payments.md#csrf-invalid",
    "fix": "send the change from the console page served by this deployment"
  }
}

The human payment routes point doc_url at the matching section of the human payments guide. The top-up and portal pages answer an HTML page naming the code, or, to a client that asks for JSON, error: "state" with error type state_error. See all error codes.