I have an application which contains the UI code created as WAR (GWT application) and server side code as EAR deployed in two different domains(8080,9090) respectively. While communicating from 8080 to 9090 its sending a request and even i can see its returning the response 200. But the client is throwing some GWT exception *"Permission denied to access property 'document'* ".Below image shows the exception thrown in fire bug.
Note: i have enabled the CORS in server 9090 see the below code added in server side code EAR
@Override
public void doFilter(ServletRequest arg0, ServletResponse arg1,
FilterChain arg2) throws IOException, ServletException {
HttpServletRequest request=(HttpServletRequest) arg0;
HttpServletResponse response=(HttpServletResponse) arg1;
response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
arg2.doFilter(request, response);
}
Is there any think i need to add in GWT client UI to handle this exception.Any suggestion ?
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment