def cors.acao.star

emerging-ezhttp@0.21.0.0 · src/cors.bend:66

import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors
import Base

66# `*` when every origin is allowed and credentials are off; else the origin
67def cors.acao.star(origin: String, star: Bool) -> String:
68  match star:
69    case True{}:
70      "*"
71    case False{}:
72      origin

Uses (2)

Used by (1)