def cors.simple_req
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
284# simple CORS from the request Origin
285def cors.simple_req(cfg: Cfg, req: Http.Request, reply: Http.Reply) -> Http.Reply:
286 match req:
287 case Http.Bad{why}:
288 reply
289 case Http.Request{method, target, headers, body}:
290 cors.simple(cfg, Http.headers.find(headers, "origin"), reply)