@@ -0,0 +1,1255 @@
+package org.superdev.coddy;%0A%0Aimport org.springframework.stereotype.Component;%0A%0Aimport javax.servlet.*;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.io.IOException;%0A%0A@Component%0Apublic class CorsConfig implements Filter %7B%0A%0A    @Override%0A    public void init(FilterConfig filterConfig) throws ServletException %7B%0A%0A    %7D%0A%0A    @Override%0A    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)%0A            throws IOException, ServletException %7B%0A%0A        HttpServletRequest request = (HttpServletRequest) servletRequest;%0A        HttpServletResponse response = (HttpServletResponse) servletResponse;%0A%0A        response.setHeader(%22Access-Control-Allow-Origin%22, request.getHeader(%22Origin%22));%0A        response.setHeader(%22Access-Control-Allow-Credentials%22, %22true%22);%0A        response.setHeader(%22Access-Control-Allow-Methods%22, %22POST, GET, PUT, DELETE%22);%0A        response.setHeader(%22Access-Control-Max-Age%22, %223600%22);%0A        response.setHeader(%22Access-Control-Allow-Headers%22, %22Content-Type, Accept, X-Requested-With, remember-me%22);%0A%0A        filterChain.doFilter(servletRequest, servletResponse);%0A    %7D%0A%0A    @Override%0A    public void destroy() %7B%0A%0A    %7D%0A%7D%0A

Fix CORS issue