Class CorsConfig
java.lang.Object
com.linecorp.centraldogma.server.CorsConfig
CORS configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCorsConfig(Object allowedOrigins, @Nullable Integer maxAgeSeconds) Creates an instance with the specifiedallowedOriginsandmaxAgeSeconds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of origins which are allowed a CORS policy.intReturns how long in seconds the results of a preflight request can be cached.toString()
-
Constructor Details
-
CorsConfig
-
-
Method Details
-
allowedOrigins
-
maxAgeSeconds
public int maxAgeSeconds()Returns how long in seconds the results of a preflight request can be cached. If unspecified, the default of7200seconds is returned. -
toString
-