Hello!
I've been trying to solve this problem for days, but can't. I'm trying to do an hybrid app, using jQuery AJAX POST requests to an external service. But no matter what I do, I keep receiving a "OPTIONS http://xxxx 405 (Method Not Allowed)". I installed the Chrome App extension for Telerik, but the error just don't go away. If I try the same data sent to the service in the Rest Console Chrome App, it works perfectly. It even works great as a packaged Chrome App, but can't make it work on the Telerik AppBuilder iPhone simulator on Chrome. This is my AJAX code:
$.ajax({
url : defaultURL + metodo,
type: "POST",
contentType : "application/json",
data:datos
}).
success(function (data){
callback (null, data);
}).
error(function (data){
callback (data, null);
});
I've tried to send crossDomain request, tried to send the data with JSON.stringify, but nothing. And what I receive in the chrome dev console is this:
OPTIONS http://xxxxxxxx 405 (Method Not Allowed)
XMLHttpRequest cannot load http://xxxxxxx. Invalid HTTP status code 405
{readyState: 0, status: 0, statusText: "error"}
BTW: I can't modify the external service, it is from a third party and not available for me.
Any suggestions? I really like the Telerik AppBuilder in the cloud, but I'm starting to get desperate and even thinking in returning to the Chrome packaged App if I can solve this problem :(