Hi team, I'm trying to setup Ory Network for the f...
# ory-network
a
Hi team, I'm trying to setup Ory Network for the first time. We wanna use it first in a Vue.JS application. We have a developer working on it and trying to set things up locally. I've created a client, set the redirect urls to localhost, and everything works fine up to the point where the UI calls the /oauth2/token endpoint to finish authentication and get the access token. Here the browser blocks us with a CORS issue. This is not that a surprise, since we did not configured CORS. Looking at the documentation, it is not possible to configure CORS to localhost (https://www.ory.com/docs/guides/cors), we should use Ory Tunnel. But it looks like Ory Tunnel is part of the Ory CLI ... which needs an API key, And I don't really wanna give my developer an API key on the whole project, since I expect to use this for production purpose in the end. Is there any alternative solution? Are we doing something wrong? Thanks!
m
Hey Benoit, what should your developer have access to? Scoped API Keys/roles for Ory Console are on the roadmap. I'm not sure if Ory Tunnel actually exposes the API key to the user 🤔 On the other hand you can just delete the API key before going to production.
a
OK, thank you
It might no expose it, but it looks like the CLI wants the API key to setup the tunnel, so developer needs it
At least I'm not totally on the wrong track 😄 Would have a project for dev and another one for prod help somehow?
m
Yes of course, the project API keys are scoped per project. On the Production plan for example you have 3 staging projects and 1 production.
👍 1