I'm working on a ionic cordova project. That application needs to be onfigured App Transport Security Exceptions for iOS 9 version.
Does anyone know how to add below configuration to the cordova project configuration file? (config.xml)
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Regards,
The easiest solution is probably by using a plugin. Take a look at cordova-plugin-transport-security
cordova plugin add cordova-plugin-transport-security --save
You can see in its plugin.xml file how it modifies the plist value.
<platform name="ios">
<config-file target="*-Info.plist" parent="NSAppTransportSecurity">
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</config-file>
</platform>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With