Question. I’m working getting another dev setup wi...
# talk-kratos
w
Question. I’m working getting another dev setup with the
kratos-selfservice-ui-node
project. I’ve setup kratos to redirect to localhost but in the end I get a 404. 1. GET http://localhost:3000/login a. responds 303
<https://beautiful-awesome-000.projects.oryapis.com/self-service/login/browser?aal=&refresh=&return_to=>
(obfuscated subdomain) 2. GET
<https://beautiful-awesome-000.projects.oryapis.com/self-service/login/browser?aal=&refresh=&return_to=>
a. responds 303
<http://localhost:3000/ui/login?flow=9d0b2c38-69c4-4bb3-8026-67f427a4ec6b>
3. GET
<http://localhost:3000/ui/login?flow=9d0b2c38-69c4-4bb3-8026-67f427a4ec6b>
a. responds 404 not found. 😖 There’s just the one required environment variable for the node service. I’m not sure what I could do different.
w
No expert here, I just started myself. Maybe you have a different setup, but for my setup everything runs on localhost. Including Ory Kratos. Somewhere the docs said that Ory Kratos and the frontend need to share the same domain. Thus my frontend is on localhost port 8080 and connects to Ory Kratos on localhost port 4000. The communication of my frontend is always against port 4000. But Ory Kratos is obviously in the cloud somewhere, which is why I set up a tunnel with:
npx @ory/cli tunnel --project stupefied-proskuriakova-s8brpl9mcq --dev <http://localhost:8080>
Does this help?
👍 1
w
Thanks I’ll give that a test. I think in the past I also was running it locally in docker.
I also may have been using ory proxy…
w
As far as I know ory proxy is deprecated in favor of tunnel
b
did you check what is the login endpoint in kratos configuration?