Fetch Authentication token from SAP Cloud REST API

Hi,

I am trying to get token from SAP Cloud Rest API. While Passing client ID and secret I end up getting CORS error.

Please help how to resolve this

  1. fetch token
  2. use this token to do post request.