[JS] i have trouble with fetching the viewerlist from a channel

I’m trying to fetch the viewerlist with JavaScript by using:
but i ran into an error:

does someone know how to fix this? or what i’m doing wrong?

You can’t do this call in client side javascript due to the CORS restriction.

Use server side.

what do you mean with serve side?

Client side generally means in the browser.

and server side?

Server side Javascript is normally NodeJS.

Okay Thanks! have a good day.

Sorry for misreading, I swear you said “whats client side” in your first reply

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