title: phonegap build + ajax call not working on android
body: <p>I'm building a phonegap app with phonegap build. My ajax call works fine on my browser and on the Ripple Emulator, but once i get the apk from phonegap build and installe it on a Samsung Galaxy 4 i get an error.</p>
  
  <p>Here is my ajax call:</p>
  
  <pre><code> var usuario = $('#usuario').val();
      var password = $('#password').val();
  
      $.ajax({
          url: 'http://www.example.com/page.php',
          jsonp: "callback",
          dataType: "jsonp",
          data: {nombre:usuario, password:password},
          success: function (data) {
              console.log(data);
              var respuesta = data.resp;
  
              if (respuesta == 0) {
                  alert('Hubo un error, inténtalo de nuevo');
              };
              if (respuesta == 1) {
                  var id = data.id;
                  window.localStorage.setItem("usuario", id);
                  window.location.replace('bici.html');
              };
          },
          error: function (xhr, status, error) {
              alert(xhr.responseText+status+error);
  
          }
      });
  </code></pre>
  
  <p>My php headers</p>
  
  <pre><code>header('Access-Control-Allow-Origin: *');
  header("Access-Control-Allow-Methods: POST,GET,OPTIONS");
  header("Access-Control-Allow-Headers: content-type");
  header("Access-Control-Allow-Headers: NCZ");
  header('Content-type: application/json;charset=utf-8');
  date_default_timezone_set('America/Mexico_City');
  </code></pre>
  
  <p>and my config.xml</p>
  
  <p>--></p>
  
  <pre><code>&lt;access origin="*"/&gt;
  &lt;access origin="http://www.example.com" /&gt;
  &lt;!-- Added the following intents to support the removal of whitelist code from    base cordova to a plugin --&gt;
  &lt;!-- Whitelist configuration. Refer to       https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html --&gt;
  &lt;plugin name="cordova-plugin-whitelist" version="1" /&gt;
  &lt;allow-intent href="http://*/*" /&gt;
  &lt;allow-intent href="https://*/*" /&gt;
  &lt;allow-intent href="tel:*" /&gt;
  &lt;allow-intent href="sms:*" /&gt;
  &lt;allow-intent href="mailto:*" /&gt;
  &lt;allow-intent href="geo:*" /&gt;
  &lt;platform name="android"&gt;
      &lt;allow-intent href="market:*" /&gt;
  &lt;/platform&gt;
  &lt;platform name="ios"&gt;
      &lt;allow-intent href="itms:*" /&gt;
      &lt;allow-intent href="itms-apps:*" /&gt;
  </code></pre>