문제

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!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top