Get Oauth token by jQuery AJAX - blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Okay, I don’t know if I have to make an other post for my question but I’m wondering if pick the right flow for the access token.

My goal is to have my own twitch application (a web application that is connected to twitch) on my local computer, and which can read and send messages to my stream, manage this one and also get my follower list. All of this is managed with JavaScript.

I choose to get a Authorization code grant flow, but maybe I had to get this one with Implicit grant flow ?

Yeah I’m lost to which one I have to use… :thinking: