@@ -0,0 +1,1449 @@
+package no.panopticon.api.internal;%0A%0Aimport org.springframework.http.HttpMethod;%0Aimport org.springframework.http.HttpStatus;%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 CORSFilter implements Filter %7B%0A    @Override%0A    public void init(FilterConfig filterConfig) throws ServletException %7B%0A%0A    %7D%0A%0A    @Override%0A    public void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain) throws IOException, ServletException %7B%0A        HttpServletResponse response = (HttpServletResponse) res;%0A        HttpServletRequest request = (HttpServletRequest) req;%0A        response.setHeader(%22Access-Control-Allow-Origin%22, %22*%22);%0A        response.setHeader(%22Access-Control-Allow-Methods%22, %22GET%22);%0A        response.setHeader(%22Access-Control-Max-Age%22, %223600%22);%0A        response.setHeader(%22Access-Control-Allow-Credentials%22, %22true%22);%0A        response.setHeader(%22Access-Control-Allow-Headers%22, %22Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers,Authorization%22);%0A        if(request.getMethod().equals(HttpMethod.OPTIONS.name()))%7B%0A            response.setStatus(HttpStatus.NO_CONTENT.value());%0A        %7Delse%7B%0A            filterChain.doFilter(req, res);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void destroy() %7B%0A%0A    %7D%0A%7D%0A

Add CORS filter