One way to bypass a proxy is by utilizing a method like JSONP. If the web service you're interacting with supports JSONP (such as Flickr or Twitter) or if you have the ability to control the data returned by the web service, you can transmit JSON data across different domains using a library that includes JSONP support.
For instance, with jQuery, you can execute a JSON call to an external source:
jQuery.getJSON("http://www.someothersite.com/webservice?callback=?", function(result)
{
processResult(result);
});
Since the call is to a different domain, jQuery employs certain techniques to enable cross-domain communication. jQuery automatically replaces the ? in the URL with a callback function name that the web service can utilize to structure the JSON data being sent back.
If you have control over the web service, you can manage the JSONP request by accessing the "callback" request parameter, which will contain the callback function name you should use. The callback function accepts one parameter, representing the JSON data to be returned. Therefore, if the callback parameter is "jsonp2342342", the web service should respond like this:
jsonp2342342({key: value, key2: value});
If the web service you're utilizing already supports JSONP, you won't need to worry about formatting the data on your own.