@@ -0,0 +1,1012 @@
+package org.ihtsdo.otf.mapping.rest;%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.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Apublic class ApiOriginFilter implements Filter %7B%0A%0A%0A%09public void doFilter(ServletRequest request, ServletResponse response,%0A%09%09FilterChain chain) throws IOException, ServletException %7B%0A%09%09HttpServletResponse res = (HttpServletResponse) response;%0A%09%09res.addHeader(%22Access-Control-Allow-Origin%22, %22*%22);%0A    res.addHeader(%22Access-Control-Allow-Methods%22, %22GET, POST, DELETE, PUT%22);%0A    res.addHeader(%22Access-Control-Allow-Headers%22, %22Content-Type%22);%0A    chain.doFilter(request, response);%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void destroy() %7B%0A%09%09// do nothing%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void init(FilterConfig arg0) throws ServletException %7B%0A%09%09// do nothing%0A%09%7D%0A%0A%0A%7D

Add new filter