title: Ionic for IOS with Wordpress
body: <p>I'm using ionic3 to build E-commerce app with Wordpress as a backend.
  I'm using Woocommerce api to get products, orders, ect. this my code to configure it</p>
  <pre><code>import * as WC from &quot;woocommerce-api&quot;;
  Woocommerce = WC({
      url: this.url,
      consumerKey: this.consumerKey,
      consumerSecret: this.consumerSecret,
      wpAPI: true,
      queryStringAuth: true,
      version: &quot;wc/v2&quot;
    });
   let query = &quot;products?&quot; + &quot;page=&quot; + this.page;
      if (this.selected != &quot;&quot;) query = &quot;products?page=&quot; + this.page;
      query = query + &quot;&amp;status=publish&quot; + &quot;&amp;&quot; + this.config.productsArguments;
      this.config.Woocommerce.getAsync(query).then((data) =&gt; {
          console.log(data)
      })
  </code></pre>
  <p>It worked on android Well but on Ios i have this error :</p>
  <blockquote>
  <p><a href="https://testsite.com/wp-json/wc/v2/products?include=2047%2C1828%2C1768%2C1767%2C1766%2C1765%2C1763&amp;status=publish&amp;order=desc&amp;orderby=date&amp;lang=en&amp;currency=EGP&amp;consumer_key=ck_xxxxxxxxxxxxxxxx&amp;consumer_secret=cs_xxxxxxxxxxxxxxz" rel="nofollow noreferrer">https://testsite.com/wp-json/wc/v2/products?include=2047%2C1828%2C1768%2C1767%2C1766%2C1765%2C1763&amp;status=publish&amp;order=desc&amp;orderby=date&amp;lang=en&amp;currency=EGP&amp;consumer_key=ck_xxxxxxxxxxxxxxxx&amp;consumer_secret=cs_xxxxxxxxxxxxxxz</a>
  Failed to load resource: Origin httpsionic://localhost is not allowed by Access-Control-Allow-Origin.</p>
  </blockquote>