title: Sendig a GET request to REST API from phone app
body: <p>I have an app that I made using Apache Cordova (it turns HTML/CSS/JS websites into an app, basically). It sends a simple GET request to my REST API that is running locally on a PC. I'm using the local (not localhost) IP of the PC (192.168.x.x) and the right port, but it doesn't seem to work. However, I am able to do it "manually" through the browser on my phone by typing in the address and port.<br>
  <code>&lt;uses-permission name="android.permission.INTERNET" /&gt;</code> is already in the .xml file. my Firewall is deactivated and my network is set to "private network".</p>
  
  <p>EDIT 20.3.2020 13:08: I realized I was looking at the wrong .xml file, but the problem still persists. Adding the whole config.xml file for clarity. </p>
  
  <p><code>&lt;xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;feature name="Whitelist"&gt;
          &lt;param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" /&gt;
          &lt;param name="onload" value="true" /&gt;
      &lt;/feature&gt;
      &lt;uses-permission name="android.permission.INTERNET" /&gt;
  </code>
      <code>&lt;name&gt;&lt;/name&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="*"/&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;allow-intent href="market:*" /&gt;
      &lt;preference name="loglevel" value="DEBUG" /&gt;
  &lt;/widget&gt;</code></p>