从GWT客户端,使跨站点异步HTTP POST [英] Making Cross Site Asynchronous HTTP Post from GWT Client

查看:108
本文介绍了从GWT客户端,使跨站点异步HTTP POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我M在基于GWT项目工作,我已经习惯了独自制作的RPC请求。我试图创建一个新项目,并使用RequestBuilder使得跨站点请求与GWT的客户端,但我无法得到它的工作。

I m working in a GWT based Project and i'm used to making RPC requests alone. I tried creating a new project and making Cross Site request with GWT client using RequestBuilder, but i couldn't get it to work.

我不是GWT真的很好。因此,请谁能告诉我如何创建一个新的项目以及它与code从GWT客户端,使跨站点请求(完全删除RPC调用)沿设置..?

I'm not really good with GWT. So Please can anyone tell me how to create a new Project and its settings along with the code for Making Cross site requests from GWT Client(completely removing RPC calls) ..?

我已经通过谷歌和计算器,但在这个主题上没有完整的东西去了。这将是每个人,我希望真正有用的。

I've went through google and stackoverflow, but no complete thing on this topic. It will be really helpful for every one i hope.

推荐答案

我们可以通过设置使跨站点请求访问控制允许起源 HTTP ://myexample.com 在响应头。
它会使响应的浏览器访问。更多信息
https://developer.mozilla.org/en/http_access_control

We can make Cross Site requests by setting "Access Control Allow Origin http://myexample.com" in Response Headers. It will make the response accessible by the browser. More information https://developer.mozilla.org/en/http_access_control

这篇关于从GWT客户端,使跨站点异步HTTP POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆