Skip to main content

Module cors

Module cors 

Source
Expand description

CORS layer builder.

Constructs a [tower_http::cors::CorsLayer] from the allowed origins listed in atrg.toml under [app].cors_origins.

Functionsยง

build_cors_layer
Build a CORS layer from the configured allowed origins.