Public api restricted access

I want to make my strapi public APIs accessible to only my frontend not other platform like postman and all.
If the solution is CORS, then please tell me all steps to implement CORS in my strapi V4 project.
Thankyou