@@ -0,0 +1,1079 @@
+package br.holandajunior.workday.filters;%0A%0Aimport br.holandajunior.workday.security.JWTAuthenticationUtils;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport javax.servlet.*;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.io.IOException;%0A%0A/**%0A * Created by holandajunior on 02/05/17.%0A */%0A@Component%0Apublic class CorsFilter implements Filter %7B%0A%0A    private String tokenHeader = JWTAuthenticationUtils.HEADER_STRING;%0A%0A    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException %7B%0A        HttpServletResponse response = (HttpServletResponse) res;%0A        response.setHeader(%22Access-Control-Allow-Origin%22, %22*%22);%0A        response.setHeader(%22Access-Control-Allow-Methods%22, %22POST, GET, PUT%22);%0A        response.setHeader(%22Access-Control-Max-Age%22, %223600%22);%0A        response.setHeader(%22Access-Control-Allow-Headers%22, %22Origin, X-Requested-With, Content-Type, Accept, %22 + tokenHeader);%0A        chain.doFilter(req, res);%0A    %7D%0A%0A    public void init(FilterConfig filterConfig) %7B%7D%0A%0A    public void destroy() %7B%7D%0A%0A%7D

Add cors filter