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
дана 08. април 2015. у 4:58 PM
thank you!