i am making an mobile application of the site http://www.turrg.com in phonegap its all working fine with android but in case of iphone i have to add url domain name to the whitelist in cordova.plist file. but in site data is coming from different-2 sites so i have to add the domain name of these sites to the whitelist in cordova.plist file is there any solution that i ads these domain name at dynamically means add automatically when new domain names are added to the turrg site.. added domain name in cordova.plist file like this.
<key>ExternalHosts</key>
<array>
<string>*.facebook.com</string>
</array>
how can i add this type of domain name in that file automatically when site has new domain name. please help me Thanks in advance.