public class CORSFilter extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_CONTROL_ALLOW_AUTHORIZATION_HEADER |
static java.lang.String |
ACCESS_CONTROL_ALLOW_HEADERS_HEADER |
static java.lang.String |
ACCESS_CONTROL_ALLOW_METHODS_HEADER |
static java.lang.String |
ACCESS_CONTROL_ALLOW_ORIGIN_HEADER |
static java.lang.String |
ALLOWED_AUTHORIZATION_PARAM |
static java.lang.String |
ALLOWED_HEADERS_PARAM |
static java.lang.String |
ALLOWED_METHODS_PARAM |
static java.lang.String |
ALLOWED_ORIGINS_PARAM |
Constructor and Description |
---|
CORSFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(ServletRequest sreq,
ServletResponse sresp,
FilterChain fc) |
void |
init(FilterConfig fc) |
public static java.lang.String ACCESS_CONTROL_ALLOW_ORIGIN_HEADER
public static java.lang.String ACCESS_CONTROL_ALLOW_HEADERS_HEADER
public static java.lang.String ACCESS_CONTROL_ALLOW_METHODS_HEADER
public static java.lang.String ACCESS_CONTROL_ALLOW_AUTHORIZATION_HEADER
public static java.lang.String ALLOWED_ORIGINS_PARAM
public static java.lang.String ALLOWED_HEADERS_PARAM
public static java.lang.String ALLOWED_METHODS_PARAM
public static java.lang.String ALLOWED_AUTHORIZATION_PARAM
public CORSFilter()
public void init(FilterConfig fc) throws ServletException
ServletException
public void doFilter(ServletRequest sreq, ServletResponse sresp, FilterChain fc) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public void destroy()