PhoneGap external hosts wildcard

前端 未结 2 1731
北海茫月
北海茫月 2021-01-07 03:01

I\'m using a js library inside a PhoneGap application for iPhone. I don\'t know what other external sites my js library contacts, so I need a way of whitelisting all connect

相关标签:
2条回答
  • 2021-01-07 03:43

    i think you need to add the domain names to PhoneGap.plist file or Cordova.plist.

    And your App is running fine in browser. So in Browser source-code you can check-out for the external links present in your code.

    Which ever file you want to access/link through internet, that server domain you need to add in plist file. suppose i have added jquery like this

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
    <script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
    

    now i need to add code.jquery.com in PhoneGap.plist-> ExternalHosts array as string.

    0 讨论(0)
  • 2021-01-07 03:48

    Try setting the value of the ExternalHosts property in Phonegap.plist to *

    0 讨论(0)
提交回复
热议问题