Hello everyone, I deployed Ory Kratos with the se...
# ory-selfhosting
r
Hello everyone, I deployed Ory Kratos with the self-service UI node in an AWS Kubernetes cluster. My setup includes Kong Gateway as the top layer, through which I'm serving the Kratos public API and UI. However, I'm encountering an issue: when I try to access the ui/login page, it gets redirected back and forth in a loop. The redirection sequence looks like this: ui/login > kratos-public/self-service/login/browser, and then it repeats. Any insights or suggestions to resolve this would be greatly appreciated.
In relation with this im getting this error: -An error occurred while handling a request audience=application error=map[debug: detailsmap[docshttps://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 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.
l
does your gateway allow cookies to pass through to the upstream?
r
Yes, I think I found the problem. I wasn't using with development mode on.
👍 1