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 origins to access the resource. The Access-Control-Allow-Origin header of the response will be set to *.

Trait Implementations

impl AroundMiddleware for CorsMiddleware
[src]

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

Auto Trait Implementations