Expand description
Runtime CORS middleware for Actix Web services.
Aster products often store CORS settings in runtime configuration rather than in a static Actix
builder. This module owns the reusable middleware mechanics: reading Origin, rejecting
disallowed cross-origin requests, handling preflight requests, applying CORS response headers,
and maintaining Vary. Product crates provide a policy resolver, exempt-path predicate,
allowed/exposed header lists, and error mapping.
Structs§
- Cors
Middleware Error - Product-neutral CORS middleware error.
- Runtime
Cors - Actix runtime CORS middleware.
- Runtime
Cors Config - Runtime CORS middleware configuration.
- Runtime
Cors Middleware - Service wrapper installed by
RuntimeCors. - Runtime
Cors Policy - Product-neutral runtime CORS policy.
Enums§
- Cors
Allowed Origins - Origin list accepted by a runtime CORS policy.
- Cors
Middleware Error Kind - CORS middleware failure category for product error mapping.