I have a GWT 1.6 app that uses Ajax requests to talk to a server. I
need to whitelist the URL for my ajax call so it would work in hosted
mode. I have tried to pass -whitelist ".*" (anything) and also many
other combinations in Eclipse and also in command line (see below). It
simply ignores the whitelist parameters and prevents me from accessing
it.

Has this feature been changed in 1.6.4? I checked the command line
arguments and followed them to the letter. I've set my classpath to
the proper one (includes what needs to be there) and this is the
command line:

<code>
java -XstartOnFirstThread -Xmx512M -Xdebug
com.google.gwt.dev.HostedMode -whitelist ".*" -logLevel DEBUG -
startupUrl Imagedex.html com.intillium.imagedex.Imagedex
</code>

And this is the classpath

/Users/rbm/Tools/gwt/gwt-dev-mac.jar:/Users/rbm/Current/imagedex/war/
WEB-INF/classes/:/Users/rbm/Tools/gwt/gwt-user.jar:/Users/rbm/Tools/
gxt-2.0-m3/gxt.jar:/Users/rbm/Current/imagedex/src/

The hosted mode starts properly. I get my login page. I try to login
and I get a response code '0' (as opposed to a '200' if it worked or a
'404' if it didn't find it) and everything else is empty. I do not get
an explicit error telling me a 'same origin' error.

I do the same thing is web browser (and add the site to the trusted
sites) and it all works fine.

Please help. Thank you ;-)
--~--~---------~--~----~------------~-------~--~----~
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