pub enum CorsError {
Show 25 variants
DisallowedByMode,
InvalidResponse,
WildcardOriginNotAllowed,
MissingAllowOriginHeader,
MultipleAllowOriginValues,
InvalidAllowOriginValue,
AllowOriginMismatch,
InvalidAllowCredentials,
CorsDisabledScheme,
PreflightInvalidStatus,
PreflightDisallowedRedirect,
PreflightWildcardOriginNotAllowed,
PreflightMissingAllowOriginHeader,
PreflightMultipleAllowOriginValues,
PreflightInvalidAllowOriginValue,
PreflightAllowOriginMismatch,
PreflightInvalidAllowCredentials,
PreflightMissingAllowExternal,
PreflightInvalidAllowExternal,
InvalidAllowMethodsPreflightResponse,
InvalidAllowHeadersPreflightResponse,
MethodDisallowedByPreflightResponse,
HeaderDisallowedByPreflightResponse,
RedirectContainsCredentials,
InsecurePrivateNetwork,
}
Available on crate features
Network
and Debugger
and Runtime
and Security
only.Variants§
DisallowedByMode
DisallowedByMode
InvalidResponse
InvalidResponse
WildcardOriginNotAllowed
WildcardOriginNotAllowed
MissingAllowOriginHeader
MissingAllowOriginHeader
MultipleAllowOriginValues
MultipleAllowOriginValues
InvalidAllowOriginValue
InvalidAllowOriginValue
AllowOriginMismatch
AllowOriginMismatch
InvalidAllowCredentials
InvalidAllowCredentials
CorsDisabledScheme
CorsDisabledScheme
PreflightInvalidStatus
PreflightInvalidStatus
PreflightDisallowedRedirect
PreflightDisallowedRedirect
PreflightWildcardOriginNotAllowed
PreflightWildcardOriginNotAllowed
PreflightMissingAllowOriginHeader
PreflightMissingAllowOriginHeader
PreflightMultipleAllowOriginValues
PreflightMultipleAllowOriginValues
PreflightInvalidAllowOriginValue
PreflightInvalidAllowOriginValue
PreflightAllowOriginMismatch
PreflightAllowOriginMismatch
PreflightInvalidAllowCredentials
PreflightInvalidAllowCredentials
PreflightMissingAllowExternal
PreflightMissingAllowExternal
PreflightInvalidAllowExternal
PreflightInvalidAllowExternal
InvalidAllowMethodsPreflightResponse
InvalidAllowMethodsPreflightResponse
InvalidAllowHeadersPreflightResponse
InvalidAllowHeadersPreflightResponse
MethodDisallowedByPreflightResponse
MethodDisallowedByPreflightResponse
HeaderDisallowedByPreflightResponse
HeaderDisallowedByPreflightResponse
RedirectContainsCredentials
RedirectContainsCredentials
InsecurePrivateNetwork
InsecurePrivateNetwork
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CorsError
impl<'de> Deserialize<'de> for CorsError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CorsError
impl RefUnwindSafe for CorsError
impl Send for CorsError
impl Sync for CorsError
impl Unpin for CorsError
impl UnwindSafe for CorsError
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