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