safari) and ie8+ you can also use CORS.
See http://saltybeagle.com/2009/09/cross-origin-resource-sharing-demo/
If you need to support IE8/9 then you will have to add a few lines of
JSNI to provide M/S XDR support.
CORS is unbelievably easy to implement at the server end, because all
you have to do is add one or two extra headers to the output.
This assumes that you have some control over the server, or can get the
server's owners to make a small change. If they are serving to a public
community, its a change that they should make, IMHO, because the wide
scale deployment of CORS would solve many problems with SOP, which,
after all, is why it was invented!
HTH
Alan
On 12/27/2011 5:20 AM, Jens wrote:
> 1.) If the domain of the external URL is actually your production
> domain (the one where you would deploy and access the app for
> production) but you are developing using localhost as domain or
> similar, you can disable SOP in several browsers (google for "disable
> SOP"). But this is only useful for developing.
>
> 2.) Make a request from GWT client to your GWT server and your GWT
> server makes a request to the external URL.
>
> 3.) Use a reverse proxy where you can map any external URLs to URLs of
> your domain, e.g. a GWT client request to
> http://www.yourdomain.com/external/mydata may be redirected by the
> reverse proxy to http://www.mydata.com/api.
>
>
> -- J.
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ot35lBGqwy4J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment