enum Protocol::Network::CorsError

Overview

The reason why request was blocked.

Defined in:

protocol/network.cr

Enum Members

DisallowedByMode = 0
InvalidResponse = 1
WildcardOriginNotAllowed = 2
MissingAllowOriginHeader = 3
MultipleAllowOriginValues = 4
InvalidAllowOriginValue = 5
AllowOriginMismatch = 6
InvalidAllowCredentials = 7
CorsDisabledScheme = 8
PreflightInvalidStatus = 9
PreflightDisallowedRedirect = 10
PreflightWildcardOriginNotAllowed = 11
PreflightMissingAllowOriginHeader = 12
PreflightMultipleAllowOriginValues = 13
PreflightInvalidAllowOriginValue = 14
PreflightAllowOriginMismatch = 15
PreflightInvalidAllowCredentials = 16
PreflightMissingAllowExternal = 17
PreflightInvalidAllowExternal = 18
PreflightMissingAllowPrivateNetwork = 19
PreflightInvalidAllowPrivateNetwork = 20
InvalidAllowMethodsPreflightResponse = 21
InvalidAllowHeadersPreflightResponse = 22
MethodDisallowedByPreflightResponse = 23
HeaderDisallowedByPreflightResponse = 24
RedirectContainsCredentials = 25
InsecurePrivateNetwork = 26
InvalidPrivateNetworkAccess = 27
UnexpectedPrivateNetworkAccess = 28
NoCorsRedirectModeNotFollow = 29

Instance Method Summary

Class methods inherited from struct Enum

parse?(string : String) : self | Nil parse?

Instance Method Detail

def allow_origin_mismatch? #

[View source]
def cors_disabled_scheme? #

[View source]
def disallowed_by_mode? #

[View source]
def header_disallowed_by_preflight_response? #

[View source]
def insecure_private_network? #

[View source]
def invalid_allow_credentials? #

[View source]
def invalid_allow_headers_preflight_response? #

[View source]
def invalid_allow_methods_preflight_response? #

[View source]
def invalid_allow_origin_value? #

[View source]
def invalid_private_network_access? #

[View source]
def invalid_response? #

[View source]
def method_disallowed_by_preflight_response? #

[View source]
def missing_allow_origin_header? #

[View source]
def multiple_allow_origin_values? #

[View source]
def no_cors_redirect_mode_not_follow? #

[View source]
def preflight_allow_origin_mismatch? #

[View source]
def preflight_disallowed_redirect? #

[View source]
def preflight_invalid_allow_credentials? #

[View source]
def preflight_invalid_allow_external? #

[View source]
def preflight_invalid_allow_origin_value? #

[View source]
def preflight_invalid_allow_private_network? #

[View source]
def preflight_invalid_status? #

[View source]
def preflight_missing_allow_external? #

[View source]
def preflight_missing_allow_origin_header? #

[View source]
def preflight_missing_allow_private_network? #

[View source]
def preflight_multiple_allow_origin_values? #

[View source]
def preflight_wildcard_origin_not_allowed? #

[View source]
def redirect_contains_credentials? #

[View source]
def unexpected_private_network_access? #

[View source]
def wildcard_origin_not_allowed? #

[View source]