hello ory team , Frontend origin is <https://deva...
# talk-kratos
h
hello ory team , Frontend origin is https://devapp.stackways.io/ and flow id i am generating via https://dev-api.stackways.io/.ory/kratos/public/self-service/login/browser , When i try to login with https://dev-api.stackways.io/.ory/kratos/public/self-service/login?flow=d14df424-61d5-4a38-838f-8104ea747a5a (Login flow ) getting 403 forbidden . (CSRF token mismatching error gettting) but csrf token is generating and passing correctly in the request body .
h
self hosted or ory network?
h
Ory self-hosted
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.
hackerman sir ?
Ory Identities and your UI must be hosted on same top level domain! You can't host Ory Identities and your UI on separate top level domains: •
<http://kratos.bar.com|kratos.bar.com>
and
<http://ui.bar.com|ui.bar.com>
will work; •
<http://kratos.bar.com|kratos.bar.com>
and
<http://bar.com|bar.com>
will work; •
<http://kratos.bar.com|kratos.bar.com>
and
<http://not-bar.com|not-bar.com>
won't work.
in our case .stackways.io
p
Hello Ory Team, Please Provide some solution if possible, we are stuck here for the above one. Thanks
s
@helpful-eve-46197 I had a similar issue. my case was that I was using one of the SDK methods which are made for the browser on the backend, more specifically the
updateRegistrationFlow
. Where the right solution was to redirect to the kratos url directly, instead of using the SDK for that.