可以将数据发布到JSONP吗?或者,是否所有数据都必须作为GET请求传递到查询字符串中?
I have alot of data that I need to send to the service, cross domain, and it is too large to send via the querystring
解决这个问题有哪些 Select ?
可以将数据发布到JSONP吗?或者,是否所有数据都必须作为GET请求传递到查询字符串中?
I have alot of data that I need to send to the service, cross domain, and it is too large to send via the querystring
解决这个问题有哪些 Select ?
It is not possible to do an asynchronous POST
to a service on another domain, due to the (quite sensible) limitation of the same origin policy. JSON-P only works because you're allowed to insert <script>
tags into the DOM, and they can point anywhere.
You can, of course, make a page on another domain the action of a regular form POST.
Edit:如果你愿意下大力气插入隐藏的<iframe>
并捣乱他们的财产,那么外面大约有interesting hacks个.