Monday, August 11, 2014

Re: Problem retrieving JSON data from a server using http get request

What you are doing is violating the same origin policy for ajax requests: http://en.wikipedia.org/wiki/Same-origin_policy

You can use JSONP or CORS to fetch data from a domain other than your host page ("other domains" includes sub domains). Otherwise you need to proxy requests from mysystem to myserver using reverse proxy features of your web server.

-- 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