If i were you @OP i would change my programming paradigm.
assuming you are getting these CORS blocked because you are making requests to localhost or something similar.
Eventually if you are going to deploy to production optoins like Google Cloud Platform
or Heroku
or , you will no have to worry about CORS like allow origin or whatever when in production.
so when testing the server just use postman
and you will not get CORS blocked, after that deploy your server and then work on your client.