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 PM
thank you!