I'm not sure if it is container related, however it seems that the CorsFilter is not picked up automatically although the @WebFilter("/*") should do that:
@WebFilter("/*")
public class CorsFilter implements Filter
Instead I had to manually add to web.xml this:
<filter>
<filter-name>edu.harvard.iq.dataverse.filter.CorsFilter</filter-name>
<filter-class>edu.harvard.iq.dataverse.filter.CorsFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>edu.harvard.iq.dataverse.filter.CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I also checked in the debugger and without the explicit web.xml doFilter() is not get called.
Last updated: Apr 03 2026 at 06:08 UTC