Expand description
Generic CORS configuration.
This builder takes origins, methods, and headers as parameters — it has
no opinion on which origins or headers a product allows. Product-specific
header lists (e.g. Soma’s mcp-protocol-version) stay in the owning
product crate and get passed in here.
Structs§
Functions§
- cors_
layer - Build a
CorsLayerthat allows exactly the given origins, methods, and request headers. Callers own picking a sane (non-empty, non-wildcard when credentials matter) set of origins.