cross domain ajax call fails

2 posts, 0 answers
  1. JonathanElsner
    JonathanElsner avatar
    20 posts
    Member since:
    Feb 2004

    Posted 11 Oct 2013 Link to this post

    The below call is failing when deployed on an android device.  This works on an iOS device, in desktop browsers, just not on Android or from chrome browser running on Android. 

    I can't figure out how to make this work.  Any suggestions?

            type: "GET",
            url: _restBaseUrl + "/api/v1/employees",
            dataType: "json",
            headers: {
                'Authorization': "Basic xxxx"
            success: function (d) {
            error: function (d) {
                alert(d.statusText + d.status + d.responseText);
  2. Steve
    Steve avatar
    10941 posts

    Posted 16 Oct 2013 Link to this post

    Hi Jonathan,

    Android debugging is currently not trivial, as the Android port of WebKit doesn't provide a Web Inspector interface for its WebView. What you can do is use add console.log all over the problematic code and check out your device logs in Graphite's output pane or use remote web debugger like Weinre.

    You can also setup Fiddler to intercept your device's traffic and give you a clue what's going on by reviewing the requests/responses.

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top