def cors.simple.add

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

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

236# append CORS headers when the origin is allowed
237def cors.simple.add(reply: Http.Reply, acao: String, credentials: Bool,
238  expose: List<&2, String>, add: Bool) -> Http.Reply:
239  cors.simple.skip(add, reply, cors.simple_hs(acao, credentials, expose))

Uses (6)

Used by (1)