public abstract class CorsUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_CONTROL_REQUEST_METHOD
The CORS
Access-Control-Request-Method request header field name. |
Constructor and Description |
---|
CorsUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isCorsRequest(javax.servlet.http.HttpServletRequest request)
Returns
true if the request is a valid CORS one. |
static boolean |
isPreFlightRequest(javax.servlet.http.HttpServletRequest request)
Returns
true if the request is a valid CORS pre-flight one. |
public static final String ACCESS_CONTROL_REQUEST_METHOD
Access-Control-Request-Method
request header field name.public static boolean isCorsRequest(javax.servlet.http.HttpServletRequest request)
true
if the request is a valid CORS one.public static boolean isPreFlightRequest(javax.servlet.http.HttpServletRequest request)
true
if the request is a valid CORS pre-flight one.Copyright © 2006–2018 TinyGroup. All rights reserved.