Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There seems to be a change in Cordova from 2.0 to 2.3. In Worklight V5, the wildcard whitelist access worked, but in V6 on BB10, only specific domains can be whitelisted.</p> <p>If I add my specific domain as an access element in config.xml, suddenly window.open() works. Looking at the <a href="https://developer.blackberry.com/html5/documentation/Access_element_834677_11.html" rel="nofollow">blackberry documentation</a>, I think I see why</p> <blockquote> <p>If you specify more than one element, the most specific definition is used. For example, if you use <a href="http://somedomain.com" rel="nofollow">http://somedomain.com</a> and <a href="http://specific.somedomain.com" rel="nofollow">http://specific.somedomain.com</a>, the element that uses the first definition (and any features defined under it) is ignored.</p> </blockquote> <p>But this leaves me wondering how the wildcard access worked in Worklight V5 (and it does) This same rule should apply to V5 Projects, and I don't see anything in the Cordova docs that changes, but for some reason the wildcard whitelist access works there but not in Worklight V6.</p> <p>In any case, I can get window.open() to work so long as I specify all domains specifically in config.xml. I haven't found a way to successfully whitelist everything. I've tried to remove everything but:</p> <pre><code>&lt;access subdomains="true" uri="*" /&gt; </code></pre> <p>(this matches what is in config.xml in my pure cordova test app) </p> <p>But then the app fails connecting to the Worklight server (not quite sure why)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload