https://www.ory.sh/ logo
#general
Title
# general
a

adorable-article-65467

02/03/2022, 4:12 PM
Hi i've set up ory on my systems happy with it. Now I'm wondering for people developing the frontend SPA on their own local environment how do I give them access in a safe way to protected API's?
p

proud-plumber-24205

02/03/2022, 4:17 PM
@User Run the Ory system with local configs (thus have different configs for local and production) and have the frontend team integrate the APIs locally then just swap out the baseURL path from local to your production baseURL on the frontend when deploying
a

adorable-article-65467

02/03/2022, 4:26 PM
The API is rather large, and running them locally would be a problem. So now I have to figure out some unprotected port forward to the service.
p

proud-plumber-24205

02/03/2022, 4:28 PM
Maybe you can query the api through a secure network, such as a proxy. But just remember when querying a service like Kratos in such an obscure way without the correct configurations will end up with lots of problems such as cookie, cors and csrf issues.
a

adorable-article-65467

02/03/2022, 4:32 PM
I'm building maps with protected data. Maps are rather large..hard to just copy over to a frontend dev. I've just solved such csrf issues now and want a local environment for devs to test with and access api's through secure proxyies. being close as close as possible to the real solution.
aswesome work btw on ory!
❤️ 1
👍 1
m

magnificent-energy-493

02/28/2022, 5:40 PM
Hey @User Did Alanos tip work for you? I think this could be interesting to add to the docs, thats why I am asking 🙂