fun corsHandler(: String = "*", : Boolean = false, : Set<HttpMethod> = EnumSet.of(GET, POST, PUT, DELETE), : Set<String> = listOfNotNull(
"X-Requested-With",
"Access-Control-Allow-Origin",
if (allowCredentials) "Authorization" else null,
"Content-Type"
).toSet()): CorsHandler (source)