Cors.cors.preflight: def of emerging-ezhttp@0.22.0.0 Import: import emerging-ezhttp@0.22.0.0/src/cors.bend as Cors Lines 195-202 of emerging-ezhttp@0.22.0.0/src/cors.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.22.0.0/src/cors.bend&start_line=195&end_line=202 import Base import emerging-ezhttp@0.22.0.0/src/http.bend as Http # OPTIONS preflight (Fetch CORS). Refused origins and methods are 400. def cors.preflight(cfg: Cfg, origin: String, method: String, req_headers: String) -> Http.Reply: match cfg: case Cfg{+origins, methods, headers, +credentials, max_age, expose}: +acao = cors.acao(origins, credentials, origin) cors.preflight.denied(acao, methods, headers, credentials, max_age, req_headers, method, String.eq(acao, "")) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/cors.bend&name=Cfg https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/cors.bend&name=cors.acao https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/cors.bend&name=cors.preflight.denied https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=Reply