I have configured the schema for Android and iOS according to the Capacitor documentation. However, when accessing the origin in iOS, it returns as ‘capacitor://’ instead of displaying ‘http’ or ‘https’. Interestingly, for Android, it works perfectly fine. Below is the JSON configuration in the ‘capacitor.config.json’
"server": {
"hostname": "app.host.service",
"androidScheme": "https",
"iosScheme": "https"
}
For Android, the origin appears correctly as ‘https://app.host.service/’. However, for iOS, it is displayed as ‘capacitor://app.host.service/’. Instead, it should be ‘https’, but it’s currently showing ‘capacitor’.
Capacitor document reference:
https://ionicframework.com/docs/troubleshooting/cors ,
https://capacitorjs.com/docs/config
Additionally, I suspect the same issue may occur with Ionic using Cordova.