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 TypeMethodDescriptionvoidadd()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) voidclose()exposedHeaders(String... exposedHeaders)
-
Method Details
-
builder
-
preflight
-
auth
-
allowAllOrigins
- Specified by:
allowAllOriginsin interfaceCors
-
allowedOrigins
- Specified by:
allowedOriginsin interfaceCors
-
allowedOrigins
- Specified by:
allowedOriginsin interfaceCors
-
allowedOrigins
- Specified by:
allowedOriginsin interfaceCors
-
allowedMethods
- Specified by:
allowedMethodsin interfaceCors
-
exposedHeaders
- Specified by:
exposedHeadersin interfaceCors
-
add
public void add()Description copied from interface:CorsAdd the CORS headers to the currentHttpResponse. -
close
public void close()
-