allowMethod

fun allowMethod(method: HttpMethod)

Adds a specified method to a list of methods allowed by CORS.

Note that CORS operates with real HTTP methods only and doesn't handle method overridden by X-Http-Method-Override.