You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Dan Moore (JIRA)" <ji...@apache.org> on 2013/08/08 19:35:47 UTC
[jira] [Created] (CB-4546) Android whitelist doesn't handle
wildcarding with google maps
Dan Moore created CB-4546:
-----------------------------
Summary: Android whitelist doesn't handle wildcarding with google maps
Key: CB-4546
URL: https://issues.apache.org/jira/browse/CB-4546
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 2.9.0
Reporter: Dan Moore
Assignee: Joe Bowser
I'm not sure if this is an issue with documentation or with code.
If you want to pull in google maps, on android 2.3 and ios, this whitelist works:
<access origin="*.google.com" />
<access origin="*.googleapis.com" />
<access origin="*.gstatic.com" />
However, on android 4.x, it doesn't. You can either specify all domains
<access origin="*" />
or specific ones:
<access origin="maps.googleapis.com" />
<access origin="maps.gstatic.com" />
<access origin="mt0.googleapis.com" />
<access origin="mt1.googleapis.com" />
<access origin="csi.gstatic.com" />
But the wildcarding doesn't seem to work. The docs pretty clearly indicate they should (since Android supports full whitelisting syntax): http://docs.phonegap.com/en/2.9.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide
To replicate, create a default project and drop the attached index.html into it, and the attached index.js into its js directory.
Then modify your www/config.xml to have the various access tags listed above and test on an android 4.x emulator (mine is 4.1.2, but I saw the issue on a 4.2.2 device as well).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira