Hello, we are using the custom ui for login and it...
# _newcomer
g
Hello, we are using the custom ui for login and it works on staging site but we are having this issue on localhost, where can I add my localhost url to allow it on custom ui login ?,
Copy code
Array ( [error] => Array ( [id] => security_csrf_violation [code] => 403 [status] => Forbidden [request] => 05af83ac-4c27-953f-8eef-8ccc4ff405d0 [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] => Array ( [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 ) )
c
I am having the very same problem I can refer to this comment here. Havn't had any luck coming to a solution. https://ory-community.slack.com/archives/C02MR4DEEGH/p1744362644571089 Not able to get any answers from the ory team either.
For further reference you might want to follow this discussion as well on github: https://github.com/orgs/ory/discussions/134
g
Thank you for @clever-furniture-50019