On Wednesday, February 12, 2014 5:04:55 PM UTC+1, Adnane Tellou wrote: > > Hi Thomas, > I actually have the general configuration you are talking about: a Tomcat > with my gwt app and the codeserver, but I'm getting the same error, > I get this error: > > *INFO: xsrf: Unable to load server-side classes used by policy: (some > classes..)* > > And in browser console : > > *http://localhost:9876/www/rpc/init <http://localhost:9876/www/rpc/init> > No 'Access-Control-Allow-Origin' header is present on the requested > resource. Origin 'http://localhost:8888 <http://localhost:8888>' is > therefore not allowed access.* > > > Any Idea? >
What's the value of GWT.getModuleBaseURL() ? It should be computed from the *.nocache.js file, so it should point to localhost:8888, and GWT-RPC URLs should be relative to GWT.getModuleBaseURL(), so should point to your Tomcat too. If you made them relative to getHostPageBaseURL(), it should work too, as that should also be your Tomcat. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
