Whitelist Rejecting google maps

2,644 views
Skip to first unread message

MMil...@mvmdesign.org

unread,
Sep 24, 2011, 6:59:09 PM9/24/11
to phonegap
I'm getting this

ERROR whitelist rejection: url='http://maps.google.com/maps/api/js?
sensor=false'

I've tried adding 'maps.google.com' to phonegap.plist in the
ExternalHost section, but it's still giving me the error. Any thoughts?

MMil...@mvmdesign.org

unread,
Sep 24, 2011, 7:50:34 PM9/24/11
to phonegap
Found something that works if anyone happens to run into the same
problem

changed the javascript link to http://maps.googleapis.com/maps/api/js?sensor=false

and then I added these next variables to the externalHost

maps.googleapis.com
maps.gstatic.com
csi.gstatic.com
mt1.googleapis.com
mt0.googleapis.com

Shazron Abdullah

unread,
Sep 26, 2011, 3:37:32 AM9/26/11
to phon...@googlegroups.com
You can use wild-cards.
e.g

*.googleapis.com
*.gstatic.com

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Shazron Abdullah

unread,
Sep 26, 2011, 3:39:38 AM9/26/11
to phon...@googlegroups.com
A note:
When you add one host in the white-list, there is a possible cascading effect of adding more hosts to the white-list - like your example where the Google Maps API code connects to even more hosts. You'll need to constantly monitor your run log to see if there are white-list errors.

On 2011-09-24, at 4:50 PM, MMil...@mvmDesign.org wrote:

Reply all
Reply to author
Forward
0 new messages