title: CORS + Cordova : issues with : Access-Control-Allow-Origin
body: <p>I have been searching hours on this issue, but I still can't find any solution to this.</p>
  <p>I am developping an App cordova (basicely HTML / JS)
  So : the app runs on mobile from the navigator, and I have trouble making an ajax request to an API : <a href="https://developer.riotgames.com/" rel="noreferrer">https://developer.riotgames.com/</a>
  But let's say that I just want to get the google page.</p>
  <p>How on earth do I do that, is this even possible ?
  Here is a simple exemple :</p>
  <pre><code>$.ajax({
      type: &quot;GET&quot;,
      url: &quot;https://google.com&quot;,
      dataType: &quot;text&quot;,
      success: function(response){
          alert(&quot;!!!&quot;);
      },
      error: function(error){
          alert(&quot;...&quot;);
      }
  });
  </code></pre>
  <p>I am getting the same error again and again :</p>
  <blockquote>
  <p>XMLHttpRequest cannot load <a href="https://google.com/" rel="noreferrer">https://google.com/</a>. No
  'Access-Control-Allow-Origin' header is present on the requested
  resource. Origin 'null' is therefore not allowed access</p>
  </blockquote>
  <p>The origin 'null' is because I run the code from : <code>file:///D:/Projets/LoL/www/index.html</code> and I read that the navigator is blocking, but it doesn't work as well if I disable the security with <code>--disable-web-security</code>
  And of course, I don't have access to the server I want to join.</p>