allowMethod

fun allowMethod(method: <ERROR CLASS>)

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.