PHONEGAP AJAX getting ip along with url

0

I'm making a simple request using the phonegap:

$.ajax({
        type: "GET",
        dataType: "json",
        url: "http://mydomain.com/request",
        data: params,
        success: function(result){

        },
        error: function(e, data, status, xhr){

        }
    })

But when executing it executes the following url:

http://<ip>:3000/proxy/http://mydomain.com/request
    
asked by anonymous 10.11.2016 / 02:42

1 answer

0

I have achieved by simply changing the dataType: "json" to dataType: "jsonp" .

He gave another error, but then another question. From Jsonp

    
10.11.2016 / 14:07