sandeepbhatkande opened a new issue, #1562: URL: https://github.com/apache/cordova-android/issues/1562
### Issue Type - [x] Bug Report - [ ] Feature Request - [ ] Support Question ## Description I have migrated my cordova app to android 10.1.2 As per documentation I removed the whitelist plugin as whitelisting is not required in android 10 and above. My app stopped working after migration. It is giving a CORS error on xhr requests, Even after I have added `<access origin="*" />` and `<allow-navigation href="*" />` in my config.xml file. Also I have set `<preference name="AndroidInsecureFileModeEnabled" value="false" />` ## Information After adding preference for hostname `<preference name="hostname" value="xyz.company.com" />` it started working as expected. But I support multiple hostnames for my app like `xyz.company.com, pqr.company.com, etc`. Is there any way to provide a generic hostname which will work for all server names? I tried with wildcard pattern matching in hostname butr no luck. ### Version information Cordova: 11.1.0 Android: 10.1.2 ## Checklist - [x] I searched for already existing GitHub issues about this - [x] I updated all Cordova tooling to their most recent version - [x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
