I’m trying to access the API from a HTML5 webworker like this ‘http://search.twitter.com/search.json’ + refreshQuery +’&geocode=’ + mapCenter.lat+ ‘%2C’ + mapCenter.lng + ‘%2C250km&rpp=100&result_type=recent&callback=?’;

In chrome I can see this generates an “Origin is not allowed by Access-Control-Allow-Origin” error

When executing the same query from a none HTML5 webworker javascript data flows in without a problem

When I use fiddler to manipulate the result’s header that comes back from twitter and add “Access-Control-Allow-Origin: *” to its header all is fine.

Can someone tell me how to use twitter api from a HTML5 webworker or how to gain access to it from a HTML5 webworker?