Why is this request not working:
var obj = { url: 'http://api.themoviedb.org/3/discover/movie', headers: { api_key: '###', year: '2000' }, dataType: 'json', type: 'GET', traditional: true, global: false, success: function (data) { alert(data); console.dir(data); }, error: function (jqXHR, textStatus) { alert(textStatus); console.dir(jqXHR); } }; $.ajax(obj);
in the DevOps Networking shows an OPTIONS request, not a GET. has to do with cross domain issues?
doing this simply in the searchBar works O.K.:
http://api.themoviedb.org/3/discover/movie?api_key=###&page=2
any help would be appreciated.
Yaron
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة yaron hochman
بتاريخ أبريل 8, 2015 في 4:58 مساءا
thank you!