Enum corsware::AllowedOrigins [] [src]

pub enum AllowedOrigins {
    Any {
        allow_null: bool,
    },
    Specific(HashSet<Origin>),
}

Specifies which Origins are allowed to access this resource

Variants

Any Origin is allowed.

Fields of Any

Allowing a null origin is a separate setting, since it's risky to trust sources with a null Origin, see https://tools.ietf.org/id/draft-abarth-origin-03.html#rfc.section.6 https://w3c.github.io/webappsec-cors-for-developers/

Allow a specific set of origins. Remember that allowing for a null header is risky.

Trait Implementations

impl Clone for AllowedOrigins
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more