title: Phonegap ajax call issue Origin null is not allowed by Access-Control-Allow-Origin.
body: <p>i'm trying to call an asmx web service, i added the Access-Control-Allow-Origin in the web.config, i added the asmx url in the phonegap whitelisting.</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          $(document).on("ready",onDeviceReady);
          function onDeviceReady(){
            $.support.cors=true;
            $.mobile.allowCrossDomainPages = true;
            $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              crossDomain:true,
              dataType: "json",
              url:"http://192.168.1.3:812/WebService1.asmx/ObtNegocios",
              data: '{}',
              success: function(msg) {                        
                for(i=0; i &lt; msg.d.length; i++)
                  {
                  $("#details").append($('&lt;li/&gt;').append($('&lt;a/&gt;').attr("href","prueba2.html?id="+msg.d[i].id.Timestamp+"-"+msg.d[i].id.Pid+"-"+msg.d[i].id.Increment+"-"+msg.d[i].id.Machine).text(msg.d[i].nombre)));
                    console.log(msg.d[i]);
                     }
                     $('#details').listview('refresh');
                     },
                     error: function(msg) {
                     alert(msg.d);
                     console.log(msg);
                     }
                     });
          }
     &lt;/script&gt;
  </code></pre>
  
  <p>the problem appear when i click a list item to see a more detailed information about it</p>
  
  <p>OPTIONS file:///D:/workspace/pruebaPhonegap/assets/www/prueba2.html?id=1375817236-10972-15564611-8618666 Origin null is not allowed by Access-Control-Allow-Origin. </p>
  
  <p>XMLHttpRequest cannot load file:///D:/workspace/pruebaPhonegap/assets/www/prueba2.html?id=1375817236-10972-15564611-8618666. Origin null is not allowed by Access-Control-Allow-Origin. </p>
  
  <p>these are the errors thrown by the chrome console,</p>