def cors.on
import emerging-ezhttp@0.21.0.0/src/cors.bend as Corsimport Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
301# answer a request: preflight or simple CORS on top of `reply`
302def cors.on(cfg: Cfg, +req: Http.Request, reply: Http.Reply) -> Http.Reply:
303 cors.route(cfg, req, reply, cors.is_preflight(req))