No 'Access-Control-Allow-Origin' help

how do i properly set my app to use jsonp

a sample of what i have so far
$.get(twitchBaseUrl + names,{dataType: “jsonp”}).then(function(theStream) {
twitchUserInfo[index] = {};
twitchUserInfo[index].user_stream = ( ? true : false);
if (twitchUserInfo[index].user_stream) {
} else {
completedRequest += 1;
return $.get(,{dataType: “jsonp”});

Correct me if I’m wrong but I believe the usage in jQuery is


Where [url] is the url.

1 Like

so for example it should be like
'’ ?

Yes, that is correct for JSONP.

1 Like

Kraken supports CORS (Access-Control-Allow-Origin:*) so you don’t need to use JSONP and callbacks.

Ex: (Added “lirik” to make sure at least one channel was online.)


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