CorsSettings

fun CorsSettings(allowedOrigin: String = "*", allowedMethods: Set<Method> = ALL, allowedHeaders: Set<String> = emptySet(), exposedHeaders: Set<String> = emptySet(), supportCredentials: Boolean = true, preFlightStatus: Int = 204, preFlightMaxAge: Long = 0)
fun CorsSettings(allowedOrigin: Regex, allowedMethods: Set<Method> = ALL, allowedHeaders: Set<String> = emptySet(), exposedHeaders: Set<String> = emptySet(), supportCredentials: Boolean = true, preFlightStatus: Int = 204, preFlightMaxAge: Long = 0)