xmlHttpRequest 和跨站限制 [英] xmlHttpRequest and cross-site restriction
本文介绍了xmlHttpRequest 和跨站限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以绕过这个限制吗?我知道我可以使用某种代理,但不确定这个代理应该是什么样子?
Ho can i bypass this restriction? I know i can use some kind of a proxy but not sure how this proxy should look like?
还有其他建议吗?
推荐答案
这是一个非常简单的教程:http://developer.yahoo.com/javascript/howto-proxy.html
Here is a pretty straightforward tutorial: http://developer.yahoo.com/javascript/howto-proxy.html
基本上,您创建一个接受 xmlhttprequest 的服务,并且必须从外部域请求数据,然后返回结果.
Basically, you make a service that takes an xmlhttprequest and have to request data from the external domain, and then return the result.
这篇关于xmlHttpRequest 和跨站限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文