cordova-config-utils
cordova-config-utils copied to clipboard
More than one NSExceptionDomains produce incorrect plist output
<platform name="ios">
<config-file platform="ios" target="*-Info.plist" parent="NSAppTransportSecurity">
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<dict>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>facebook.net</key>
<dict>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
</dict>
</dict>
</config-file>
</platform>
produces this in the Info.plist file.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<string>facebook.net</string>
<key>[object Object]</key>
<dict>
<key>NSExceptionMinimumTLSVersion</key>
<string>NSIncludesSubdomains</string>
<key>NSExceptionRequiresForwardSecrecy</key>
<string>NSThirdPartyExceptionRequiresForwardSecrecy</string>
<key>TLSv1.0</key>
<true/>
<key>false</key>
<false/>
</dict>
</dict>
</dict>