I’m working on an app and using ionic 5, capacitor 2, and angular 10. for security reasons, I need to add domain white listing.
So I modified config.xml file and changed <access origin="*"/> to <access origin="https://*.something.com" in both android and iOS.
After running the app live on a device using ionic capacitor run android -l --external --configuration=staging I can still load an iframe and access content from “abc.com” or any other domain?
Is domain whitelisting not possible in ionic capacitor?
So if you’re using Capacitor, you do not need the config.xml, since that is for cordova. Use the capacitor.config.json and the server.allowNavigation field?
I think because of these 4 plugins this XML file is generated and it is adding <access origin="*" />
After editing this to <access origin="https://*.something.com" and build app can’t see any changes, it still can load any iframe. @mhartington