If I have two different CNAMES i.e Core App from http://www.foo.com and the JSON request to http://json.foo.com is that a problem?
On Apr 19, 10:58 am, Fernando <spiderkens...@gmail.com> wrote: > I'm also new to GWT, but I think this is why isn't working when you > change the URL: > > http://en.wikipedia.org/wiki/Same_origin_policy > > On Apr 18, 5:58 pm, nasionalem <sakarya.me...@gmail.com> wrote: > > > > > > > I am new in GWT 2.0 and JSON. I need to get some values using JSON. > > so I downloaded "json" sample from code.google.com. When I run the > > project Its working fine. but when I change the url, I am getting > > error below. > > > "com.google.gwt.http.client.RequestPermissionException: The > > URLhttp://api.search.yahoo.com/ImageSearchService/V1/imageSearch?appid=Y... > > is invalid or violates the same-origin security restriction" > > > Its working when code like below, > > private static final String DEFAULT_SEARCH_URL = > > GWT.getModuleBaseURL() > > + "search-results.js"; > > > private finalRequestBuilderrequestBuilder= newRequestBuilder( > > RequestBuilder.GET, DEFAULT_SEARCH_URL); > > > And this is what I did; > > private finalRequestBuilderrequestBuilder= newRequestBuilder( > > > > RequestBuilder."http://api.search.yahoo.com/ImageSearchService/V1/ > > imageSearch?appid=YahooDemo&query=potato&results=2&output=json"); > > > -- > > 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-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.