4 ms·
If it is not possible, I think it is more a web programming limitation rather than Dropbox failing to implement something. Everything their SDKs do can also be
by jaredsohn 15y ago
If it is not possible, I think it is more a web programming limitation rather than Dropbox failing to implement something.
Everything their SDKs do can also be done using their REST API (https://www.dropbox.com/developers/reference/api https://www.dropbox.com/developers/reference/api) and they support JSONP to allow cross-domain GET queries. However, my understanding is that JSONP is not supported for other REST methods, most importantly POSTs. A person claims to have found a workaround for doing POSTs via JSONP here: http://stackoverflow.com/questions/5345493/using-put-post-delete-with-jsonp-and-jquery http://stackoverflow.com/questions/5345493/using-put-post-de....
Has anyone tried that or know of a way to do cross-domain POSTs?
- IgorPartola 15y agoYou can do cross-domain POSTs. You just cannot get a response from the server. Often times though you can get the length of the response. This can be used to do a POST to change settings on an unsecured Wi-Fi routers, for example and checking whether the call succeeded or not by the length of the response. The method described in the SO answer is similar, from what I can tell, to what DISQUS uses. I believe they call it JSONPI: http://alexsexton.com/thirdparty/#forms-are-cool-too http://alexsexton.com/thirdparty/#forms-are-cool-too