You are being blocked by sop. Single origin policy.

To go around u have 3 options.
1. Setup a redirect servlet in ur UI app that fetches remote data and serves
to client.
2. Write native js in gwt to dynamically write out a script tag on your
HTML. This is like jsonp.
3. Deploy the online app - ur data source - on your dev environment.

Hope this helps.

Sachin
On Mar 16, 2011 8:15 AM, "Kari" <[email protected]> wrote:
> Hey all,
>
> I am writing a UI which makes asynchronous calls to a server. That
> server is actually the server on which the UI will be deployed.
> However, since I am in dev-mode my domain is 127.0.0.1:8888 and the
> requests are sent to another domain (online.) Unfortunately, I am
> getting the "Access-Control-Allow-Origin" message and no date.
>
> My guess is that I am missing something since this sounds like a
> typical case but for some reason I haven't found an elegant solution.
> I thought that something like that would be already part of GWT. I
> have found about "add-linker" but it didn't seem to work. In the very
> worst case, how could I do everything locally; would the server code
> and client code have to be on the same port, and how could that be
> done if any different from being on a different domain?
>
> Thanks all
>
> --
> You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to