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
Any Origin is allowed.
Fields of Any
allow_null: bool | 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/ |
Specific(HashSet<Origin>)
Allow a specific set of origins. Remember that allowing for a null header is risky.
Trait Implementations
impl Clone for AllowedOrigins
[src]
fn clone(&self) -> AllowedOrigins
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more