07-26-2013 01:17 PM - edited 07-26-2013 01:19 PM
I've converted my HTML5 app to a BB10 app following the instructions here:
And successfully deployed my BB10 app to my BB Z10 device using debug tokens and following the instructions here:
But I'm still running into the same JS popup every time I open the app, as discussed in this thread:
There's not a solution posted in that thread, so does anyone know what this popup means? I'm using a Tomcat web server hosted on my PC, so I've added this line in my config.xml file:
<access uri="http://<my ip address>/<my web server port number>/" subdomains="true">
Still, I find a JS alert saying 'Access to "http://<my ip address>/<my web server port number>/<my web service>/static/home.html" not allowed'.
07-29-2013 10:45 AM
Maybe you have a typo in your request, but your webserver IP should follow a colon, not a slash, as such:
<access uri="http://<my ip address>:<my web server port number>" subdomains="true"></access> //example <access uri="http://192.168.11.11:8080" subdomains="true"></access>
07-29-2013 11:21 AM - edited 07-29-2013 11:21 AM
Thanks for the reply. I realize my typo in that line of my config.xml file. I've changed it to a colon as you suggested, but it still hasn't fixed the problem. I've also added this line to my config file, within the <feature id="blackberry.app"/> header:
<param name="websecurity" value="disable" />
So it seems like the restriction isn't coming from the BlackBerry, and I need to spend some more time looking into my Tomcat web server's security settings.
07-30-2013 01:15 PM - edited 07-31-2013 04:15 PM
Just a quick suggestion, I don't believe the port is required in the <access> element. If you update the uri to just http://123.456.789.0 (replacing with your own IP address), does that affect anything?
If you can provide a screenshot of the full error, that would be ideal too.
Edit: I was incorrect. If the port is non-standard, it should be included in the <access> whitelist.