Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49258

Help with Iframe in Ionic React

$
0
0

Hello, I have an react capacitor app,
where i have to use hostname as prod url to avoid CORS issues like https://en.wikipedia.org,
So updated capacitor.config.ts to

  appId: 'io.ionic.starter',
  appName: 'myApp',
  webDir: 'dist',
  server: {
    androidScheme: 'https',
    hostname:'en.wikipedia.org'
  }
};

My app also loads url(United States - Wikipedia) in iframe ,
Issue : In iframe instead of page, it is reloading the same app again as domain matches
const config: CapacitorConfig = {
appId: ‘io.ionic.starter’,
appName: ‘myApp’,
webDir: ‘dist’,
server: {
androidScheme: ‘https’,
hostname:‘en.wikipedia.org
}
};

How to address this issue

when using in localhost:8100 or any other hostname

in actual android

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49258

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>