@@ -0,0 +1,998 @@
+package innovimax.mixthem.rest.filters;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.Filter;%0Aimport javax.servlet.FilterChain;%0Aimport javax.servlet.FilterConfig;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.ServletRequest;%0Aimport javax.servlet.ServletResponse;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Apublic class ControlFilter implements Filter %7B%0A%0A    public void init(FilterConfig filterConfig) throws ServletException %7B%7D%0A%0A    public void destroy() %7B%7D%0A%0A    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) %0A            throws IOException, ServletException %7B%0A        HttpServletResponse res = (HttpServletResponse) response;%0A        res.addHeader(%22Access-Control-Allow-Origin%22, %22*%22);%0A        res.addHeader(%22Access-Control-Allow-Methods%22, %22GET, POST, OPTIONS%22);%0A        res.addHeader(%22Access-Control-Allow-Headers%22, %22Content-Type%22);%0A        res.setCharacterEncoding(%22utf-8%22);%0A        chain.doFilter(request, response);%0A    %7D%0A%0A%7D%0A

Create ControlFilter.java