Module kvarn::cors

source ·
Expand description

CORS implementation for Kvarn.

See Cors for usage details.


  • A CORS allow list which allowes hosts, methods, and headers from a associated path. This is a builder-like struct. Use the add_* methods to add allowed origins, methods, and headers. Multiple allow lists can be added to a Cors instance. See the example at Cors.


Type Definitions