/*
 * Copyright (c) 2014, Dienst Landelijk Gebied - Ministerie van Economische Zaken
 * 
 * Gepubliceerd onder de BSD 2-clause licentie, 
 * zie https://github.com/MinELenI/CBSviewer/blob/master/LICENSE.md voor de volledige licentie.
 */
package nl.mineleni.cbsviewer.servlet;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;

/**
 * Stelt response headers in voor de applicatie.
 * 
 * @author prinsmc
 *
 */
public class ResponseHeadersFilter implements Filter {

	/**
	 * Stelt extra responseheaders in.
	 * 
	 * {@inheritDoc}
	 * 
	 * @param req
	 *            het request
	 * @param res
	 *            de response
	 * @param chain
	 *            de filter chain
	 * @throws IOException
	 *             Signals that an I/O exception has occurred.
	 * @throws ServletException
	 *             the servlet exception
	 * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest,
	 *      javax.servlet.ServletResponse, javax.servlet.FilterChain)
	 * 
	 * 
	 */
	@Override
	public void doFilter(ServletRequest req, ServletResponse res,
			FilterChain chain) throws IOException, ServletException {

		HttpServletResponse response = (HttpServletResponse) res;
		response.setHeader("X-UA-Compatible", "IE=edge");
		response.setHeader("Access-Control-Allow-Origin", "*");
		chain.doFilter(req, res);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
	 */
	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
		// do nothing
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.Filter#destroy()
	 */
	@Override
	public void destroy() {
		// do nothing
	}
}

@@ -1235,16 +1235,22 @@
 oFilter(
+final 
 ServletR
@@ -1260,16 +1260,22 @@
 est req,
+ final
  Servlet
@@ -1291,16 +1291,22 @@
 res,%0A%09%09%09
+final 
 FilterCh
@@ -1682,16 +1682,22 @@
 id init(
+final 
 FilterCo

Update ResponseHeadersFilter.java