On Apr 8, 7:41 am, javaci <[email protected]> wrote: > Hi, > > Thanks for the answer... > > I have to avoid any custom filed in header.. such as Content-Type: > text/html; charset=ISO-8859-1 to prevent OPTIONS method in request or > web server must support Access-Control-Allow-Origin in response. > > I think Access-Control-Allow-Origin should be provided by the web > server in repose with proper white-list for request origin. > or I have to use both previous versions of web server and browser. > > I will try asap but any other suggestion for solution.
Because Google doesn't send back an Access-Control-Allow-Origin (and doesn't support the OPTIONS method on this URL), and many browsers current in use won't support cross-origin requests, the solution is to not try to do a cross-origin request, but instead make a request to your own server (same origin) and have it "proxy" it to Google. Search for "ajax proxy" for examples in different languages (PHP, Java, Python, etc.) -- 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.
