title: InAppBrowser.open opens in browser instead of the WebView
body: <p>The goal is to open a foreign url within the webview when the app starts.</p>
  
  <p>I create fresh Cordova project:</p>
  
  <pre><code>cordova create test
  cd test
  cordova platform add ios
  cordova plugin add cordova-plugin-inappbrowser
  </code></pre>
  
  <p>I inline this script in <code>www/index.html</code>:</p>
  
  <pre><code>&lt;script&gt;
    document.addEventListener("deviceready", onDeviceReady, false);
    function onDeviceReady() {
      cordova.InAppBrowser.open('https://google.com', '_self');
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>I test the app with <code>cordova run ios</code>, app starts, and I get this:</p>
  
  <blockquote>
    <p>Refused to execute a script because its hash, its nonce, or 'unsafe-inline' appears in neither the script-src directive nor the default-src directive of the Content Security Policy.</p>
  </blockquote>
  
  <p>So I add <code>'unsafe-inline'</code> to the Content Security Policy tag and it becomes this:</p>
  
  <pre><code>  &lt;meta 
      http-equiv="Content-Security-Policy"
      content="
        default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline'; 
        style-src 'self' 'unsafe-inline'; 
        media-src *; 
        img-src 'self' data: content:;"&gt;
  </code></pre>
  
  <p>I test the app with <code>cordova run ios</code>, app starts, but it opens <code>https://google.com</code> in Safari:</p>
  
  <p><a href="https://i.stack.imgur.com/potit.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/potit.jpg" alt="enter image description here"></a></p>
  
  <p>How the hell do I open the url in the Cordova webview itself?</p>
  
  <hr>
  
  <p>I also tried with <code>window.location="https://google.com"</code>, same behavior.</p>