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.
Re-exports§
pub use crate::shared::cors::CorsAllowedOrigins;pub use crate::shared::cors::CorsMiddlewareError;pub use crate::shared::cors::CorsMiddlewareErrorKind;pub use crate::shared::cors::RuntimeCorsPolicy;
Structs§
- Runtime
Cors - Actix runtime CORS middleware.
- Runtime
Cors Config - Runtime CORS middleware configuration.
- Runtime
Cors Middleware - Service wrapper installed by
RuntimeCors.