Hi, today debugging my Fluter app I have a new pro...
# talk-kratos
e
Hi, today debugging my Fluter app I have a new problem with the
createNativeLoginFlow
. I get a 400 Bad Request with
"reason" -> "Requested return_to URL xxxxxxxxxxx is not allowed."
. The App already in production still works fine. Any idea why I get this error?
w
In the config file (
kratos.yml
for example), does the
selfservice.allowed_return_urls
contain the
return_to
that was passed as a parameter to the
createNativeLoginFlow
call?
e
Well, I don't have that file. However, the same code is currently running in production and it works.
s
You can check the return URLs on the Ory Console: https://console.ory.sh/projects/current/browser-redirects I would guess that in your production project you have the URL added, and your test one is missing the URL.
e
The return URL is the same for both environments.
Thanx, I fixed it.