Struct iron_cors::CorsMiddleware [] [src]

pub struct CorsMiddleware { /* fields omitted */ }

The struct that holds the CORS configuration.

Methods

impl CorsMiddleware
[src]

Specify which origin hosts are allowed to access the resource.

Allow all origin to access the resource.

Trait Implementations

impl AroundMiddleware for CorsMiddleware
[src]

Produce a Handler from this AroundMiddleware given another Handler. Read more