https://www.ory.sh/ logo
m

microscopic-oyster-60915

01/07/2022, 3:36 PM
Hello all, I am just trying out ory and wanted to setup the ory cloud self service registration flow. To do so I have to (if I understood correctly) fetch the following project-url to get the flow id (https://myproject.oryapis.com/api/kratos/public/self-service/registration/browser). I am currently developing locally on my machine under localhost:3000 So I added in the Cloud Console under "Browser redirects" my URLs as shown in the picture But I am getting CORS error when trying to fetch the project-url (picture 2) Despite the CORS error the flow id is echoed back in the response headers but it is not the 302 redirect I was expecting from the docs. Am I missing something here?
p

proud-plumber-24205

01/07/2022, 3:43 PM
You need to use the Ory Proxy on local development. The CORS errors will prevent you from making any requests to the server.
m

microscopic-oyster-60915

01/07/2022, 3:46 PM
Thank you very much, I wasnt aware of this tool
p

proud-plumber-24205

01/07/2022, 3:49 PM
Np, you can also check out some of our guides, I'm guessing you are writing an SPA? https://www.ory.sh/docs/start-building/single-page-app-spa
m

microscopic-oyster-60915

01/07/2022, 3:59 PM
yes, thanks for the guides I am writing a Vue/Nuxt application but I will dig into the provided examples
6 Views