Client credentials grant flow API, CORS issue

The only other way would be to make the requests on your server rather than client-side.