I have the problem described here in a cordova app: iOS9 ATS: what about HTML5 based apps?
... I don't see an Info.plist outside of the platforms/ios directory that I can add that config to. Everything inside platforms/ios gets clobbered/replaced when I build the app.
So, is there a way to update the Info.plist with that new config that is permanent?
Thanks!
In my projects I'm using my own cordova-ios fork which has a mentioned by you change in the template project's Info.plist file (it requires cordova platform add url_to_your_fork
), although you can invoke in your <PROJECT_NAME>/platforms/ios/<PROJECT_NAME>
:
/usr/libexec/PlistBuddy <PROJECT_NAME>-Info.plist -c "Add :NSAppTransportSecurity:NSAllowsArbitraryLoads bool true"
Straight after cordova platform add ios
, or add it as a Cordova after_platform_add
hook
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.