Config.xml preference - NSAppTransportSecurity


#1

Running into an issue in iOS9. I found the snippit below for my info.plist which allows non https requests. Is there a way to include this as a preference in my config.xml file? Its annoying to have to constantly add it back to my info.plist each time I do a platform remove/add

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
 <true/>
</dict>

Running ionic emulate with App Transport Security disabled
#2

You can script this in your build. See http://www.keendevelopment.ch/managing-ats-in-ios9-cordova-applications/ for inspiration.


#3

Or you could use a plugin for this: