[Error] "Request header field Client-ID is not allowed by Access-Control-Allow-Headers in preflight response."

One thing that stands out is it needs a / after streams

url: ‘https://api.twitch.tv/kraken/streams/’ + tnick,