public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletResponse r = (HttpServletResponse) response;
r.addHeader("Access-Control-Allow-Origin", "*");
r.addHeader("Access-Control-Allow-Headers",
"Accept,Accept-Encoding,Accept-Language,Cache-Control,Connection,Content-Length,Content-Type," +
"Cookie,Host,Pragma,Referer,RemoteQueueID,User-Agent");
r.addHeader("Access-Control-Allow-Credentials", "true");
chain.doFilter(request, response);