我正在尝试从托管在www.myURL.com/somefolder/runScript的服务器中检索一些数据。我正在www.myURL.com上提供一个网页,这个网页恰好位于与检索数据的端点相同的服务器上。然而,在eclipse中我收到了这个错误:
08-03 19:47:57.210: E/Web Console(27287): XMLHttpRequest cannot load http:myendpoint Origin http://www.myURL.com is not allowed by Access-Control-Allow-Origin. at null:1
有人成功地在Android WebView上允许跨域请求吗?非常感谢!