I'd like to apply configuration globally (to all r...
# ktor
m
I'd like to apply configuration globally (to all routes) the way that the
CORS
feature does, but also be able to turn it off for certain routes, the way that the
Authentication
feature interoperates with routes. I insert a new phase for the global stuff (mimicking Authentication's behavior, but maybe I should reuse
ApplicationCallPipeline.Infrastructure
like CORS?) and intercept that, but how would I alter the behavior there on a per-route basis? Install another phase right before the global one, and jam something in `ApplicationCall`'s
Attributes
?