Question

ERROR whitelist rejection: url='http://api.some_host-name.country_code/some_thing.json'

This is the format of the URI i am using to get feeds in json format.

please tell me how to add it to my External Host Array in the cordova.plist I have tried adding *, ., *.some_host_name.com *.some_host_name.country_code *.some_host_name.country_code/*

etc. etc. But nothing seems to work and all I get is just the UI loaded on screen. Kindly help me with this thing. Thanks in advance!

Was it helpful?

Solution

Sometimes if you don't clean and rebuild the project there are some issues, so I would recommend to clean first.

To add new records to the whitelist, if you are using Xcode, fetch the Cordova.plist in the working tree and select it. Open the ExternalHosts dropdown list and press the + sign that will show up and it will add a new record, that you can fill with your server name, wildcard or whatever you need.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top