AllowAnyOriginFilter

An servlet filter which appends the CORS headers to HTTP responses.

Requests from any origin are allowed. The requests are allowed to contain credentials and the Content-Type header.

When configuring servlets via web.xml, users can add this filter to the requested servlets.

When configuring servlets via annotations, users can extend this class and mark the subtype with the javax.servlet.annotation.WebFilter annotation.

Constructors

Link copied to clipboard
public void AllowAnyOriginFilter()

Properties

Link copied to clipboard
public final static String ANY_URL
A URL pattern which matches all the URLs.
Link copied to clipboard
public final static String NAME
The human readable name of this filter.

Functions

Link copied to clipboard
public void destroy()
Link copied to clipboard
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
Link copied to clipboard
public void init(FilterConfig filterConfig)