News for hackers. Stuff that matters.
Re:What I Learned from Making the Python Back End for My New... by daft_pink on Wednesday October 16, 2024 @04:57PM (#41863789)
So essentially, you only let the server side rendering function, access the API and don’t secure it at all beyond that?

You could essentially use a static JWT token that only that nexts cloud function knows?

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.