@@ -0,0 +1,1136 @@
+package ch.rasc.extdirectspring.demo;%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.HttpServletResponse;%0A%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class SimpleCORSFilter implements Filter %7B%0A%0A%09@Override%0A%09public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)%0A%09%09%09throws IOException, ServletException %7B%0A%09%09HttpServletResponse response = (HttpServletResponse) res;%0A%09%09response.setHeader(%22Access-Control-Allow-Origin%22, %22https://fiddle.sencha.com%22);%0A%09%09response.setHeader(%22Access-Control-Allow-Methods%22, %22POST, GET, OPTIONS, DELETE%22);%0A%09%09response.setHeader(%22Access-Control-Max-Age%22, %223600%22);%0A%09%09response.setHeader(%22Access-Control-Allow-Headers%22,%0A%09%09%09%09%22Origin, X-Requested-With, Content-Type, Accept%22);%0A%09%09chain.doFilter(req, res);%0A%09%7D%0A%0A%09@Override%0A%09public void init(FilterConfig filterConfig) %7B%0A%09%09// nothing here%0A%09%7D%0A%0A%09@Override%0A%09public void destroy() %7B%0A%09%09// nothing here%0A%09%7D%0A%0A%7D

Add a simple CORS filter, so that we can make calls from sencha fiddle