06-24-2010 09:42 PM
I'm testing the same App within a Web Widget and inside the native BlackBerry Web Browser, and I'm getting strange security errors on the Web version.
I'm using XMLHttpRequests, and my understanding is that those are allowed as long as the script that makes the request is hosted on the same server as the service it is requesting the data from.
In my case I get a DOMException #18 (SECURITY_ERR) eventhough both the script and the ressource it's accessing are in the same domain (and subdomain)
Of course, the frustrating thing is that the same code on both iPhone and Android (and of course a desktop browser) works flawlessly.
Is it possible that this error is in fact masking a different problem with the BlackBerry browser? Tested with both the Simulator with 9550 (126.96.36.1999) and a real device...
Solved! Go to Solution.
06-25-2010 07:00 PM
Ok for the benefit of other developpers. The BlackBerry browser doesn't support the W3C Cross-Origin Resource sharing standard :-( (http://www.w3.org/TR/cors/)
But it seems it's apply cross origin to the location of the html file, not the script...
I'm serving everything from a single host thanks to some apache magic.