Private networking - React and FastAPI
Hey. I've read the docs and am still slightly confused. How do I go about making calls from my public React app to my private FastAPI backend.
https://docs.railway.app/reference/private-networking
Frontend Service ID - 025f778e-723c-45ae-844c-f18fab993162
Backend Service ID - 29800e78-3c36-43a7-99b3-823055a3d0b4
Solution:Jump to solution
then I'm sorry but you have the wrong idea, your backend needs to be public
8 Replies
Project ID:
025f778e-723c-45ae-844c-f18fab993162,29800e78-3c36-43a7-99b3-823055a3d0b4
is this a client side rendered react app?
Yes it is
Solution
then I'm sorry but you have the wrong idea, your backend needs to be public
Ah ok thanks Brody, not a problem on backend being public.
Question, is there a built-in way to allow my backend service to filter out requests that are not coming from my React app?
that would need to be done with cors headers set by your app
Ok will do. That is all the questions I have right now.
Once again, thank you very much for the speedy response
no problem 🙂