I am currently building a web application.
My front-end is developed using React and Axios (for API call requests). It is served directly by Nginx on app.mydomain.com
My back-end is developed using Django and Django Rest. It is served with Nginx and Gunicorn on api.mydomain.com. It only serves API endpoints.
So the front-end and the back-end are separated.
I would like only my front-end (app.mydomain.com) to be able to make API requests to my Django Rest backend.
I would like to prevent any other domain, any clients such as postman, insomnia, curl or any script to make API requests to my backend.
I have already set CORS in Django Rest. However, I can still make requests to the backend using curl or any other client.
Do you have any idea of what I could do to achieve this?
Thanks a lot in advance for you answers.