script follower problem

You only have a header of a Client-ID you have no token in your headers

All of helix requires a token, and you didn’t declare any.

This looks like front end code so you’d need to ask the user of the website to login with Twitch to provide a token to use

Example

https://barrycarlyon.github.io/twitch_misc/authentication/implicit_auth/