Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
DaveHolladay
Posts: 4
Registered: ‎03-27-2012
My Carrier: t-mobile

Enabling Cross-Site XmlHttpRequests in WebView

Is there any way of enabling cross-site XHR in the WebView control? I need to access resources on the web from a local script & currently get an Exception 101 with any url other than local:///xxxx.

 

The WebWorks browser can do this but I can't see any setting equivalent to the OS6 "BrowserFieldConfig.setProperty( BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE );"

 

Dave.

Please use plain text.
New Member
jusapo
Posts: 1
Registered: ‎02-02-2013
My Carrier: Telstra

Re: Enabling Cross-Site XmlHttpRequests in WebView

Hi Dave - did you find an answer to this? Cheers

Please use plain text.
Contributor
inawire
Posts: 33
Registered: ‎07-08-2010
My Carrier: Telus

Re: Enabling Cross-Site XmlHttpRequests in WebView

I've also been looking for an answer to this. A quick link to a working sample would be all we would need :smileyhappy:

Please use plain text.
Contributor
inawire
Posts: 33
Registered: ‎07-08-2010
My Carrier: Telus

Re: Enabling Cross-Site XmlHttpRequests in WebView

In case anyone finds this post there is a solution / hack listed on this thread.

 

http://supportforums.blackberry.com/t5/Cascades-Development/How-to-whitelist-sites-for-XHR-in-WebVie...

 

 

Please use plain text.