Package org.keycloak.services.cors
Class DefaultCors
java.lang.Object
org.keycloak.services.cors.DefaultCors
- Author:
- Stian Thorgersen
-
Field Summary
Fields inherited from interface org.keycloak.services.cors.Cors
ACCESS_CONTROL_ALLOW_CREDENTIALS, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_ALLOW_ORIGIN_WILDCARD, ACCESS_CONTROL_EXPOSE_HEADERS, ACCESS_CONTROL_MAX_AGE, AUTHORIZATION_HEADER, DEFAULT_ALLOW_HEADERS, DEFAULT_ALLOW_METHODS, DEFAULT_MAX_AGE, ORIGIN_HEADER
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add()
Add the CORS headers to the currentHttpResponse
.allowedMethods
(String... allowedMethods) allowedOrigins
(String... allowedOrigins) allowedOrigins
(KeycloakSession session, ClientModel client) allowedOrigins
(AccessToken token) auth()
builder
(jakarta.ws.rs.core.Response.ResponseBuilder builder) void
close()
exposedHeaders
(String... exposedHeaders)
-
Method Details
-
builder
-
preflight
-
auth
-
allowAllOrigins
- Specified by:
allowAllOrigins
in interfaceCors
-
allowedOrigins
- Specified by:
allowedOrigins
in interfaceCors
-
allowedOrigins
- Specified by:
allowedOrigins
in interfaceCors
-
allowedOrigins
- Specified by:
allowedOrigins
in interfaceCors
-
allowedMethods
- Specified by:
allowedMethods
in interfaceCors
-
exposedHeaders
- Specified by:
exposedHeaders
in interfaceCors
-
add
public void add()Description copied from interface:Cors
Add the CORS headers to the currentHttpResponse
. -
close
public void close()
-