title: Ajax POST and PhoneGap
body: <p>I created a restful webservice, when I use Postman to send Json data via POST it works fine, but as soon as I'm trying to send something via ajax POST from my Phonegap page, the url of the Phonegap page somehow gets attached to the url defined below: </p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){  
          $('#submit').click(function(){  
              $.ajax({  
                  url:"http://localhost:8080/rest/user/",  
                  type:'post',
                  data : {
                      "id": 4,
                      "firstname": "Max",
                      "lastname": "Mustermann"
                  },      
                  dataType: 'JSON', 
                  success: function(res, status, xhr){
                      console.log(res);
                  } 
              });  
          });  
      });      
  &lt;/script&gt;
  </code></pre>
  
  <p>Looking at the POST method in the Firefox console the url suddenly looks like this: </p>
  
  <p><a href="http://192.168.1.102:3000/proxy/http://localhost:8080/rest/user/" rel="nofollow noreferrer">http://192.168.1.102:3000/proxy/http://localhost:8080/rest/user/</a></p>
  
  <p>Why does this happen and how can I prevent this behaviour? </p>
  
  <p>Thanks in advance! </p>
  
  <p><strong>EDIT</strong>: When replacing localhost with the actual IP address the url in the Firefox console looks correct, but somehow it still doesn't work... </p>