public final class CrossOriginUtil extends Object
CrossOrigin
.Modifier and Type | Field and Description |
---|---|
static String |
MEMBER_ALLOW_CREDENTIALS |
static String |
MEMBER_ALLOWED_HEADERS |
static String |
MEMBER_ALLOWED_METHODS |
static String |
MEMBER_ALLOWED_ORIGINS |
static String |
MEMBER_ALLOWED_ORIGINS_REGEX |
static String |
MEMBER_EXPOSED_HEADERS |
static String |
MEMBER_MAX_AGE |
Modifier and Type | Method and Description |
---|---|
static Optional<CorsOriginConfiguration> |
getCorsOriginConfigurationForRequest(HttpRequest<?> request) |
public static final String MEMBER_ALLOWED_ORIGINS
public static final String MEMBER_ALLOWED_ORIGINS_REGEX
public static final String MEMBER_ALLOWED_HEADERS
public static final String MEMBER_EXPOSED_HEADERS
public static final String MEMBER_ALLOWED_METHODS
public static final String MEMBER_ALLOW_CREDENTIALS
public static final String MEMBER_MAX_AGE
@NonNull public static Optional<CorsOriginConfiguration> getCorsOriginConfigurationForRequest(@NonNull HttpRequest<?> request)
request
- the HTTP request for the configuration