pub struct CorsConfig {
pub allowed_origins: HashSet<String>,
pub allowed_methods: HashSet<Method>,
pub allowed_headers: HashSet<HeaderName>,
pub allow_credentials: bool,
pub max_age: Duration,
}Expand description
Cross-origin policy for browser requests.
Fields§
§allowed_origins: HashSet<String>§allowed_methods: HashSet<Method>§allowed_headers: HashSet<HeaderName>§allow_credentials: bool§max_age: DurationTrait Implementations§
Source§impl Clone for CorsConfig
impl Clone for CorsConfig
Source§impl Debug for CorsConfig
impl Debug for CorsConfig
Auto Trait Implementations§
impl Freeze for CorsConfig
impl RefUnwindSafe for CorsConfig
impl Send for CorsConfig
impl Sync for CorsConfig
impl Unpin for CorsConfig
impl UnsafeUnpin for CorsConfig
impl UnwindSafe for CorsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more