static CORSConfigBuilder |
CORSConfigBuilder.corsConfig() |
Creates a builder to set CORS configuration.
|
static CORSConfigBuilder |
CORSConfigBuilder.disabled() |
Creates CORS configuration that disables all CORS requests.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllOriginsAllowed() |
All origins will be allowed
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowCredentials(boolean allowCredentials) |
If set to true, then access-control-allow-credentials is returned with true on CORS responses.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowedHeaders(java.lang.String... headerNames) |
On preflight OPTIONS requests, specifies which headers are allowed to be sent on the request, aside from the "simple" headers.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowedHeaders(java.util.Collection<java.lang.String> headerNames) |
On preflight OPTIONS requests, specifies which headers are allowed to be sent on the request, aside from the "simple" headers.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowedOriginRegex(java.lang.String allowedOriginRegex) |
The origin values that CORS requests are allowed for.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowedOriginRegex(java.util.regex.Pattern allowedOriginRegex) |
The origin values that CORS requests are allowed for.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowedOrigins(java.lang.String... allowedOrigins) |
The origin values that CORS requests are allowed for.
|
CORSConfigBuilder |
CORSConfigBuilder.withAllowedOrigins(java.util.Collection<java.lang.String> allowedOrigins) |
The origin values that CORS requests are allowed for, or null to allow all origins.
|
CORSConfigBuilder |
CORSConfigBuilder.withExposedHeaders(java.lang.String... headerNames) |
Specifies which headers (aside from "simple" headers) are allowed to be accessed by JavaScript in responses.
|
CORSConfigBuilder |
CORSConfigBuilder.withExposedHeaders(java.util.Collection<java.lang.String> headerNames) |
Specifies which headers (aside from "simple" headers) are allowed to be accessed by JavaScript in responses.
|
CORSConfigBuilder |
CORSConfigBuilder.withLocalhostAllowed() |
Adds all localhost URLs (whether http or https) as allowed origins.
|
CORSConfigBuilder |
CORSConfigBuilder.withMaxAge(long seconds) |
On preflight OPTIONS requests, specifies the time the response is valid for
|