I recently got to setup a React-App and a seperate Node.js/express Application on a Server. I want the React App to be able to fetch Data from the Node Application, but i dont want anyone from the outside being able to access those api calls, not from requests, neither from direct links, Postman etc.
At first i thought about using the express-ipfilter to only allow requests from the server, but i guess that wont work, since the requests will be usually come from the users ip!?
What would be the best way to enable my react application to do static api calls for its content, without exposing the api to the outside?
I am kind of lost on this, and any Help or Advice would be highly appreciated!