ServletException {
HttpServletResponse response = (HttpServletResponse) res;
HttpServletRequest request...= (HttpServletRequest) req;
String origin = request.getHeader("Origin");
if (allows.contains...User-Agent,X-Requested-With,x-xsrf-token,x-csrf-token,If-Modified-Since,Cache-Control,Content-Type, X-Custom-Header..., Access-Control-Expose-Headers, Token, Authorization");
response.setHeader("Access-Control-Allow-Credentials..."no-cache");
response.setHeader("pragma", "no-cache");
if ("OPTIONS".equals(request.getMethod