I have a web application with LDAP authentication developed using GWT and restygwt on the client side running on a Glassfish server. Everything seems to be working correctly in Chrome and Firefox. However in Safari. I receive a HTTP Status 0 before even trying to log in. Both Chrome and Firefox are correctly requesting
http://localhost/pROJECT/user/self.
However Safari is requesting
http://project/user/self
which doesn't exist. All the other css, html, js requests are correct url. Why is Safari removing localhost from the request? and thinks that project is the host? I've been able to do everything so far without looking at the generated javascript. Is that something I have to do at this point?
Here's the service definition
@Path("user")
public interface UserService extends RestService {
@GET
@Path("self")
public void self(MethodCallback<User> callback);
}
Here's the call to the service from the client for verbosity
userService.self(new MethodCallback<User>() {
public void onFailure(Method method, Throwable exception) {
statusBar.error(exception);
}
public void onSuccess(Method method, User self) {
statusBar.done();
}
});
I can provide more info or code if requested.