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!