title: Access content inside an iframe from a ionic uwp app
body: <p>I'm tring to port an ionic2 application to Windows UWP.<br>
  This application scrapes some web pages and then extracts some information from them. In particular, I have necessity to display a web page inside an <em>iframe</em> and then extract a link inside a given HTML node.  </p>
  
  <p>In order to avoid CORS problem I added these lines in the <em>config.xml</em> file:</p>
  
  <pre><code>  &lt;access origin="*" /&gt;
    &lt;allow-navigation href="*" /&gt;
    &lt;allow-intent href="*" /&gt;
    &lt;allow-navigation href="http://*/*" /&gt;
    &lt;allow-navigation href="https://*/*" /&gt;
    &lt;allow-navigation href="data:*" /&gt;
  </code></pre>
  
  <p>This solution works well for both Android and iOS but not for Windows which, when I try to extract the page inside the iframe, raises a "denied access exception"</p>
  
  <pre><code>    let documentPromise = new Promise(function(resolve,reject){
      let el: any = document.getElementById('innerframetmp');
      el.addEventListener('load', function(){
        resolve(el.contentDocument); &lt;-- "access denied exception here"
      }, {once:true})
    });
  </code></pre>
  
  <p>I tried also to add the CSP header in the index file with no luck.
  Is there any workaround for "Same Origin" security policy? Why the config.xml setting is not enough as it is for android and ios?</p>
  
  <p>Thank you in advance.</p>