Hello, as far as i can tell you its not allowed to perform the request by a user(client side) you need a server that redirects the user to the Auth Window. See https://dev.twitch.tv/docs/authentication.
Cors is blocking it, cause twitch servers doesnt allow direct communication from browsers by using this Auth Flow