pub enum CorsConfigError {
CredentialedWildcard,
}Expand description
Error type for CORS configuration validation.
Variants§
CredentialedWildcard
CORS misconfiguration: wildcard origin with credentials enabled.
The combination allow_all_origins: true and credentials: true is
not allowed — it would grant credentialed access to every origin,
bypassing same-origin policy. Use an explicit origin list instead.
Trait Implementations§
Source§impl Clone for CorsConfigError
impl Clone for CorsConfigError
Source§fn clone(&self) -> CorsConfigError
fn clone(&self) -> CorsConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CorsConfigError
Source§impl Debug for CorsConfigError
impl Debug for CorsConfigError
Source§impl Display for CorsConfigError
impl Display for CorsConfigError
impl Eq for CorsConfigError
Source§impl Error for CorsConfigError
impl Error for CorsConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CorsConfigError
impl PartialEq for CorsConfigError
impl StructuralPartialEq for CorsConfigError
Auto Trait Implementations§
impl Freeze for CorsConfigError
impl RefUnwindSafe for CorsConfigError
impl Send for CorsConfigError
impl Sync for CorsConfigError
impl Unpin for CorsConfigError
impl UnsafeUnpin for CorsConfigError
impl UnwindSafe for CorsConfigError
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