qooxdoo json/请求传输方法

发布于 2024-08-27 05:55:10 字数 214 浏览 6 评论 0原文

我尝试通过 GET 向我的服务器发送请求,但 qooxdoo 将请求作为选项发送。有什么办法可以改变这种行为吗?

我尝试使用 qx.data.store.Json (url) 和 qx.io.remote.Request (url, "GET", type) 但两种情况下的结果相同。

我的qooxdoo版本是1.0.1,浏览器是FF 3.5.6和Chromium 5.0.361。

I try to send a request to my server via GET, but qooxdoo sends request as OPTIONS. Is any way to change this behaviour?

I try to use qx.data.store.Json (url) and qx.io.remote.Request (url, "GET", type) but result is same in both cases.

My version of qooxdoo is 1.0.1, browsers are FF 3.5.6 and Chromium 5.0.361.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一瞬间的火花 2024-09-03 05:55:10

这很可能是由于跨浏览器限制造成的问题。尝试使用 JSONP 存储并将您的数据作为 JSONP 传递以解决该问题。

It is most likely a problem due to cross browser restrictions. Give the JSONP store a try and deliver your data as JSONP to get rid of that problem.

呆萌少年 2024-09-03 05:55:10

我认为这是因为我尝试从 file:/// 发送跨域请求到 http:// 。
如果我将测试应用程序部署到服务器 - 它工作正常。

I think this is because I try to send cross-domain request from file:/// to http://.
If I deploy a test application to server - it works fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文