title: jQuery AJAX POST does not work with Phonegap Build
body: <p>I am having a problem doing a jQuery AJAX POST in an Android application using Phonegap Build. I have added:</p>
  
  <ol>
  <li>Config.xml: set access origin *</li>
  <li>All HTML files: set $.support.cors = true; $.mobile.allowCrossDomainPages = true; </li>
  <li>On remote server: set values for Access-Control-Allow-Origin, Access-Control-Allow-Headers </li>
  </ol>
  
  <p>I have looked high and low for an answer to this. I have gone through several posts giving conflicting information, and I have tried a lot of the solutions mentioned, but none of them worked. </p>
  
  <p>Here is what I am attempting to do: </p>
  
  <pre><code>$.ajax({
    type: "POST",
    url: "http://mydomain.com/mypage.aspx/myweb...",
    data: "{'sEnquiryText':'" + $("#textareaEnq")[0].value + "'}",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function(data) { // Response function
      if (data.d == "Success")
        $("#lblInfoMsg").html("Enquiry sent successfully !");
      else
        $("#lblInfoMsg").html(data.d);
    }
  });
  </code></pre>
  
  <p>This works fine as a web application when installed on a different domain (myseconddomain.com/mywebapp) as well as local IIS (localhost/mywebapp). But it does not work on an Android app made using Phonegap Build.</p>
  
  <p>If someone could please look into this issue, I would greatly appreciate it.</p>