package yanagishima.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class YanagishimaFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        HttpServletResponse res = (HttpServletResponse) response;
        res.setHeader("Access-Control-Allow-Headers", "*");
        res.setHeader("Access-Control-Allow-Origin", "*");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {

    }
}

@@ -33,23 +33,105 @@
 ort 
-javax.servlet.*
+yanagishima.util.Constants;%0A%0Aimport javax.servlet.*;%0Aimport javax.servlet.http.HttpServletRequest
 ;%0Aim
@@ -618,19 +618,43 @@
 aders%22, 
-%22*%22
+Constants.DATASOURCE_HEADER
 );%0A     

Revert "set Access-Control-Allow-Headers to *"