03-26-2013 08:06 AM - edited 03-26-2013 08:15 AM
I'm having trouble getting my HTML5 WebWorks application to connect to some data services that my application requires to progress. I have a 'registration' screen which is where you point the application to for the web services. But whenever I connect, I receive the error: 'Access to "https://mycompany.mywebservices.com/WcfDataService
<access uri="*" subdomains="true" />
I know there are a few posts floating around on this issue, but following them all seems to have landed me in no better position that what I was before reading them - and I'm getting a bit stuck. I read that the wildcard character doens't work on BlackBerry, thus tried the following:
1.svc" subdomains="true" />
But even that did not work unfortunately. The 'mycompany' part of the URL is what can change, so I attempted:
<access uri="https://*.mywebservices.com/WcfDataService1.svc" subdomains="true" />
But even that wasn't successful! I've tried a lot of combinations but they seem to be getting me no where. Is there a limitation on what I can/can't connect to that's not allowing my WebWorks application to connect? Am I doing something obviously wrong as I cannot seem to get any combination to work.
If someone could help me, it would be a huge assistance! Many thanks.
Edit: modified my last access rule.
03-26-2013 08:43 AM
Resolved it now
It required the following snippet in the config.xml:
<feature id="blackberry.app" required="true" > <param name="websecurity" value="disable" version="220.127.116.11" /> </feature>
03-26-2013 09:54 AM
I wouldn't recommend disabling all web security unless it's absolutely necessary.
You should be able to whitelist that domain with the following
<access uri="https://mywebservices.com" subdomains="true" />
03-26-2013 10:18 AM
Great - thank you! That certainly did help. It's weird why "https://*.mywebservices.com" didn't work - are wildcards completely disallowed in BlackBerry's config files?