Hello guys, I am implementing the settings flow bu...
# ory-network
c
Hello guys, I am implementing the settings flow but I am having the following problem: 1. I start the recovery flow correctly, this sends me an email with the link to authenticate. 2. The link has the address of the OryCloud project, however, my application is located locally, at localhost:3001 3. It never manages to get into my settings screen, since the session-token cookie is never shared from the link, therefore my settings screen starts the login flow. 4. If I copy the link that comes to my email and change the ory host (that is, the Ory Cloud address) to localhost:3001, it works correctly, that is, the session token is generated and the settings flow starts. I’m sure this is a problem as cookies are shared between different hosts, since the Ory instance and my NextJS app instance are not on the same host, so the question is, how do I share cookies? cookies correctly between orycloud and my localhost?
p
Hi @cool-engine-68327 You need to mirror the Ory Apis to localhost using the
ory tunnel
. Essentially this rewrites the cookies for you to your localhost domain and then point your application to the tunnel instead. Are you using the NextJS example we provide or a complete custom solution?
c
I’m using the Ory example, but without tunnel, I have to configure it?
p
If you are using the Ory example, everything "ory" related should be hosted under your nodejs application e.g. localhost:3000/.ory/