Struct iron_cors::CorsMiddleware
[−]
[src]
pub struct CorsMiddleware { /* fields omitted */ }
The struct that holds the CORS configuration.
Methods
impl CorsMiddleware
[src]
fn with_whitelist(allowed_hosts: Vec<String>) -> Self
Specify which origin hosts are allowed to access the resource.
fn with_allow_any() -> Self
Allow all origin to access the resource.