title: can't get power Bi access token
body: <p>I am trying to get access token using JavaScript/angular but I am getting error <strong>No 'Access-Control-Allow-Origin' header is present on the requested resource</strong> and while I am calling api for accessing the token using Postman getting response code 200.</p>
  
  <p><a href="https://i.stack.imgur.com/Ws3bV.png" rel="nofollow noreferrer">Postman api call for token</a></p>
  
  <p>Error on console while calling api from angular but <strong>response code is 200</strong> in network tab.</p>
  
  <p><a href="https://i.stack.imgur.com/kOdJP.png" rel="nofollow noreferrer">error response on console</a></p>
  
  <p><a href="https://i.stack.imgur.com/JnJjj.png" rel="nofollow noreferrer">Response code 200 in network tab</a></p>
  
  <p>I am not able to get the Power BI access token in angular code and there is no proper documentation for accessing the token without gui based authentication in power BI.</p>