Hello, anyone know a solution to this? ```{ "id"...
# ory-network
h
Hello, anyone know a solution to this?
Copy code
{
  "id": "c6897816-4387-48a9-8603-35f3a84785e7",
  "error": {
    "code": 400,
    "id": "self_service_flow_return_to_forbidden",
    "message": "The request was malformed or contained invalid parameters",
    "reason": "Requested return_to URL \"<http://localhost:3000/register>\" is not allowed.",
    "status": "Bad Request"
  },
  "created_at": "2024-11-11T17:10:03.652321Z",
  "updated_at": "2024-11-11T17:10:03.652321Z"
}
using Ory Network with Next.js 14, trying to implement self-service registration with custom UI, Server Side Rendered
g
Not sure i have used the tunnel before but it may be related to configuring the allowed url in the settings here
h
Yess I seem to be getting somewhere with that
Thanks @gray-library-49237, I solve the above using both the allowed URLs and the UI urls. Thanks!
you pointed me in the right direction
Havent found many examples of Ory with Next.js 14, might publish this toy app once I am done
just trying to figure out the flows for my team
g
Awesome. Glad it worked for you. There are some nextj samples you can take a look out while playing around with it. It should come in handy. https://github.com/ory/kratos-selfservice-ui-react-nextjs https://github.com/ory/examples/tree/master/oathkeeper/11-kratos-keto
m
Thx for the help @gray-library-49237! @handsome-night-48436 I would be very happy to guide you if you want to publish your next.js 14 example! I think https://github.com/ory/examples/ is the best place for it at the moment. Let me know if I can assist 🤗
h
thanks! Ill be in contact once finished, hopefully this week 🙏