pub enum CorsError {
Show 28 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,
InsecureLocalNetwork,
InvalidLocalNetworkAccess,
NoCorsRedirectModeNotFollow,
LocalNetworkAccessPermissionDenied,
}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
InsecureLocalNetwork
InvalidLocalNetworkAccess
NoCorsRedirectModeNotFollow
LocalNetworkAccessPermissionDenied
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
impl StructuralPartialEq for CorsError
Auto Trait Implementations§
impl Freeze for CorsError
impl RefUnwindSafe for CorsError
impl Send for CorsError
impl Sync for CorsError
impl Unpin for CorsError
impl UnsafeUnpin 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