You have to live with the JavaScript constraints which means you either make a request to the domain the app is served from or the server must support CORS headers to allow cross origin requests. If both are not possible then JSONP is the only other solution to make requests to any domain that supports JSONP.
If you don't like the JSONP approach then publish your own URL somewhere in the internet and let it use CORS headers so you can make a request to that URL.
Alternatively if your app is wrapped with a native app frame (e.g. UIWebView on iOS) then you might implement something natively in Objective-C and call it through JavaScript.
-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment