Config.xml preference - NSAppTransportSecurity

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>

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

Or you could use a plugin for this:

1 Like