[ 
https://issues.apache.org/jira/browse/CB-8941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579427#comment-14579427
 ] 

Tim Windsor edited comment on CB-8941 at 6/9/15 7:16 PM:
---------------------------------------------------------

It looks like if we want to support the completely unrestricted access of "*" 
then we need to change something somewhere else, but that parsing the config 
works properly and sets the 'hasMultiAccess' property correctly.

To make subdomains work using the wildcard, I think we can add another check 
for uri/origin having '//*.' and if so, chop out the '*.' and then add it with:
widgetConfig.accessList.push(createAccessListObj(choppedURI, true);

Does that make sense, and will it cover the use case as you see it?


was (Author: timwindsor):
It looks like if we want to support the completely unrestricted access of "*" 
then we need to change something somewhere else, but that parsing the config 
works properly and sets the 'hasMultiAccess' property correctly.

To make subdomains work using the wildcard, I think we can add another check 
for uri/origin having "//*." and if so, chop out the "*." and then add it with:
widgetConfig.accessList.push(createAccessListObj(choppedURI, true);

Does that make sense, and will it cover the use case as you see it?

> Subdomain whitelisting on bb10 does not match up with android
> -------------------------------------------------------------
>
>                 Key: CB-8941
>                 URL: https://issues.apache.org/jira/browse/CB-8941
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: BlackBerry
>    Affects Versions: 5.0.0
>            Reporter: Jenny Gee
>            Assignee: Josh Soref
>            Priority: Minor
>
> We need to support this format like the other platforms:
> {code:xml}
>   <access origin="http://*.google.com"; />
> {code}
> See this file:
> bin/templates/project/cordova/lib/config-parser.js
> lines that are of interest:
> {code}
> data.access.forEach(function (accessElement) {
> ...
> if (attribs.uri === "*" || attribs.origin === "*") {                          
>    
> ...
> widgetConfig.accessList.push(createAccessListObj(attribs.uri || 
> attribs.origin, attribs.subdomains));
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to