title: Cordova Whitelist Plugin
body: <p>I know this question has been asked many, many times online. I've run out of luck trying everything there is.</p>
  
  <p>I'm trying to POST data to a server and get back a simple response.
  Obviously I would need to install the cordova whitelist plugin to achieve accessing external sources from the app, so I installed it.</p>
  
  <p>The error I get back is:
  <strong><em>Failed to load resource: net::ERR_NAME_NOT_RESOLVED</em></strong></p>
  
  <p><strong>Project Info:</strong></p>
  
  <ul>
  <li>This is an Onsen UI app</li>
  <li>Cordova CLI 6.5.0</li>
  <li>Android Version 6.1.2</li>
  </ul>
  
  <p><strong>Installed Plugins:</strong></p>
  
  <ul>
  <li>cordova-plugin-compat@1.1.0</li>
  <li>cordova-plugin-file@~4.3.2</li>
  <li>cordova-plugin-splashscreen@4.0.2</li>
  <li>cordova-plugin-camera@2.4.0</li>
  <li>cordova-plugin-whitelist@1.3.3-dev</li>
  </ul>
  
  <p><strong>Meta Tag:</strong></p>
  
  <pre><code>&lt;meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"&gt;
  </code></pre>
  
  <p><strong>Tools I'm using:</strong>
  Windows 10,
  Visual Studio 2015</p>
  
  <p><strong>What I have done:</strong></p>
  
  <ol>
  <li><p>Uninstalled and Reinstalled the Whitelist plugin, using Visual
  Studio</p></li>
  <li><p>Uninstalled the plugin and reinstalled via Cordova CLI</p>
  
  <p><strong>cordova plugin add cordova-plugin-whitelist</strong></p></li>
  <li><p>Uninstalled and reinstalled plugin via Github    </p></li>
  <li><p>I've even updated Cordova to 6.5.0 from 6.2.0</p></li>
  <li><p>I created a simple GET request to see if it works and still nothing works.</p></li>
  <li><p>Cleared the Cordova Cache in Visual Studio.</p></li>
  </ol>
  
  <p><strong>Javascript code I used:</strong></p>
  
  <pre><code>$http({
      method: 'GET', url: "http://mywebsite.com/simple_get.php"
  }).then(
     function (response) {
         alert(JSON.stringify(response));
     },
     function (response) {
         alert(JSON.stringify(response));
     }
  );
  </code></pre>
  
  <p><strong>jQuery Code also tried:</strong></p>
  
  <pre><code>var settings = {
      "async": true,
      "crossDomain": true,
      "url": "http://mywebsite.com/demo.php",
      "method": "GET",
      "headers": {
          "content-type": "application/x-www-form-urlencoded",
          "cache-control": "no-cache"
      },
      "data": {}
  }
  
  jQuery.ajax(settings).done(function (response) {
      console.log(response);
  });
  </code></pre>
  
  <p>I have no idea how to debug anymore and get to the problem, any help would be greatly appreciated... This is the final step for my app to be done :( </p>
  
  <p>Thanks</p>