Get user list in chat?

Hi !
I am searching for a way to get the users list in chat.
I tried using
but I get a CORS policy error when I try a XMLHttpRequest.

do you have any idea of how I can achieve that ?

Don’t make the call in front end code.
Make the call via a server.

I can’t it’s for a thing in the backgound of my live

There is no solution to this without using a server.
Since you cannot bypass the CORS requirements enforced by the server you are making requests to.

Basically Twitch is blocking you from doing exactly what you are trying to do.

Oh… Okay so I’ll make a server and try to fetch it from there but what to do exactly ? a cURL?

Yes a curl.

Or whatever the language of choice you use does to make HTTP requests.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.