Re:What I Learned from Making the Python Back End for My New...
by eigenvalue on Wednesday October 16, 2024 @05:27PM
(#41864010)
Yeah, I restrict it by the IP address, so the FastAPI backend can only receive connections from localhost or the one machine running the NextJS app. There are certainly lots of ways you could restrict it, such as using a password or key.
You could essentially use a static JWT token that only that nexts cloud function knows?