Package org.keycloak.services.resources
Class Cors
java.lang.Object
org.keycloak.services.resources.Cors
- Author:
- Stian Thorgersen
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCors
(HttpRequest request) Cors
(HttpRequest request, jakarta.ws.rs.core.Response.ResponseBuilder response) -
Method Summary
Modifier and TypeMethodDescriptionstatic Cors
add
(HttpRequest request) static Cors
add
(HttpRequest request, jakarta.ws.rs.core.Response.ResponseBuilder response) allowedMethods
(String... allowedMethods) allowedOrigins
(String... allowedOrigins) allowedOrigins
(KeycloakSession session, ClientModel client) allowedOrigins
(AccessToken token) auth()
jakarta.ws.rs.core.Response
build()
void
build
(BiConsumer<String, String> addHeader) void
build
(HttpResponse response) builder
(jakarta.ws.rs.core.Response.ResponseBuilder builder) exposedHeaders
(String... exposedHeaders)
-
Field Details
-
DEFAULT_MAX_AGE
public 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:
-
-
Constructor Details
-
Cors
-
Cors
-
-
Method Details
-
add
-
add
-
builder
-
preflight
-
auth
-
allowAllOrigins
-
allowedOrigins
-
allowedOrigins
-
allowedOrigins
-
allowedMethods
-
exposedHeaders
-
build
public jakarta.ws.rs.core.Response build() -
build
-
build
-