Package org.keycloak.services.cors
Interface Cors
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultCors
- Author:
- Stian Thorgersen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cors
add
(HttpRequest request) static Cors
add
(HttpRequest request, jakarta.ws.rs.core.Response.ResponseBuilder response) addExposedHeaders
(String... exposedHeaders) allowedMethods
(String... allowedMethods) allowedOrigins
(String... allowedOrigins) allowedOrigins
(KeycloakSession session, ClientModel client) allowedOrigins
(AccessToken token) auth()
jakarta.ws.rs.core.Response
build()
boolean
build
(BiConsumer<String, String> addHeader) boolean
build
(HttpResponse response) builder
(jakarta.ws.rs.core.Response.ResponseBuilder builder) exposedHeaders
(String... exposedHeaders) request
(HttpRequest request)
-
Field Details
-
DEFAULT_MAX_AGE
static final long DEFAULT_MAX_AGE -
DEFAULT_ALLOW_METHODS
- See Also:
-
DEFAULT_ALLOW_HEADERS
- See Also:
-
ORIGIN_HEADER
- See Also:
-
AUTHORIZATION_HEADER
- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN
- See Also:
-
ACCESS_CONTROL_ALLOW_METHODS
- See Also:
-
ACCESS_CONTROL_ALLOW_HEADERS
- See Also:
-
ACCESS_CONTROL_EXPOSE_HEADERS
- See Also:
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
- See Also:
-
ACCESS_CONTROL_MAX_AGE
- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN_WILDCARD
- See Also:
-
INCLUDE_REDIRECTS
- See Also:
-
-
Method Details