AngularJS cross-domain requests using $http service
I'm trying to learn AngularJS by making a simple web app using the Twitch API ( https://github.com/justintv/Twitch-API ) but I'm having trouble performing a GET request since it's a cross-domain request. This is what I have tried angular.module('streamPlaylisterAppServices', []).factory('twitchService', ['$http', function($http) { return function(usercode){ console.log("usercode inside service is: " + usercode) var authHeader = 'OAuth' + usercode; return $http({ method: 'GET', url: ' https://api.twitch.tv/kraken', cache: false, headers:{ 'Accept': 'application/vnd.twitchtv.v3+json',