CORS error on GET top games Twitch API

@Dist
Thanks for quick reply. Question does this mean it will be a two steps procedure for making API request to twitch API ?

  1. make a call to https://id.twitch.tv/oauth2/authorize with required query parameter including
    client_id, redirect_uri, response_type, scope ?

     ?client_id=<your client ID>
     &redirect_uri=<your registered redirect URI>
     &response_type=<type>
     &scope=<space-separated list of scopes>
    
  2. Then using the returned access token from 1st call to make the request I want ?