Hi all, I have a question
# ory-network
f
Hi all, I have a question
Copy code
self-service/recovery/flows?id=
I am using this api and get issue
Copy code
{
  "error": {
    "id": "security_csrf_violation",
    "code": 403,
    "status": "Forbidden",
    "request": "458be30b-4dd2-949d-8f12-4564f0be95f7",
    "reason": "Please retry the flow and optionally clear your cookies. The request was rejected to protect you from Cross-Site-Request-Forgery (CSRF) which could cause account takeover, leaking personal information, and other serious security issues.",
    "details": {
      "docs": "<https://www.ory.sh/kratos/docs/debug/csrf>",
      "hint": "The anti-CSRF cookie was found but the CSRF token was not included in the HTTP request body (csrf_token) nor in the HTTP Header (X-CSRF-Token).",
      "reject_reason": "The HTTP Cookie Header was set and a CSRF token was sent but they do not match. We recommend deleting all cookies for this domain and retrying the flow."
    },
    "message": "the request was rejected to protect you from Cross-Site-Request-Forgery"
  }
}
How can I set csrf-token?
b
you can get it when you call the recovery browser call
f
I know, but I need to customize recovery ui
So I changed Recovery UI in User Interface of Ory console
And when I call the recovery browser, it shows my customized ui
I got csrf token from call the recovery browser
And I added it in my customized ui and submitted to self-service/recovery/flows?id=
But get same error again
@better-garden-63533 would you help me?