Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corydolphin/flask-cors
/ functions
Functions
195 in github.com/corydolphin/flask-cors
⨍
Functions
195
◇
Types & classes
24
↳
Endpoints
63
Method
test_allow_headers_with_request_headers
If there is an Access-Control-Request-Method header in the request and Access-Control-Request-Method is allowed for cross ori
tests/decorator/test_allow_headers.py:47
Method
test_allow_headers_with_request_headers_case_insensitive
HTTP headers are case insensitive. We should respect that and match regardless of case, returning the casing sent by
tests/decorator/test_allow_headers.py:61
Method
test_allow_headers_with_unmatched_request_headers
If every element in the Access-Control-Request-Headers is not an allowed header, then the matching headers should be returned
tests/decorator/test_allow_headers.py:73
Method
test_always_send
()
tests/decorator/test_origins.py:31
Method
test_always_send_no_wildcard
()
tests/decorator/test_origins.py:36
Method
test_always_send_no_wildcard_origins
(self)
tests/decorator/test_origins.py:108
Method
test_compiled_regex
Ensure we do not error if the user specifies an bad regular expression.
tests/extension/test_app_extension.py:339
Method
test_compiled_subdomain_regex
()
tests/decorator/test_origins.py:66
Method
test_compiled_subdomain_regex
(self)
tests/extension/test_app_extension.py:126
Method
test_consistent
()
tests/decorator/test_vary_header.py:30
Method
test_consistent_origin
If the Access-Control-Allow-Origin header will change dynamically, the Vary:Origin header should be set.
tests/decorator/test_vary_header.py:52
Method
test_consistent_origin_concat
If Flask-Cors adds a Vary header and there is already a Vary header set, the headers should be combined and comma-separated.
tests/decorator/test_vary_header.py:76
Method
test_credentials_supported
()
tests/decorator/test_credentials.py:25
Method
test_credentials_unsupported
()
tests/decorator/test_credentials.py:30
Method
test_default
()
tests/decorator/test_allow_headers.py:21
Method
test_default
By default, allow all domains, which means the Vary:Origin header should be set.
tests/decorator/test_vary_header.py:44
Method
test_default
()
tests/decorator/test_expose_headers.py:22
Method
test_default
()
tests/decorator/test_credentials.py:35
Method
test_default
()
tests/decorator/test_options.py:25
Method
test_default
By default match all.
tests/extension/test_app_extension.py:274
Method
test_defaults
Access-Control-Allow-Methods headers should only be returned if the client makes an OPTIONS request.
tests/decorator/test_methods.py:33
Method
test_defaults
The default behavior should automatically provide OPTIONS and return CORS headers.
tests/decorator/test_options.py:38
Method
test_defaults
By default, no max-age headers should be returned
tests/decorator/test_max_age.py:38
Method
test_defaults_no_origin
If there is no Origin header in the request, the Access-Control-Allow-Origin header should be '*' by default.
tests/decorator/test_origins.py:84
Method
test_defaults_no_origin
If there is no Origin header in the request, by default the '*' should be sent
tests/extension/test_app_extension.py:68
Method
test_defaults_with_origin
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be included.
tests/decorator/test_origins.py:91
Method
test_defaults_with_origin
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be included.
tests/extension/test_app_extension.py:75
Method
test_exact_match
()
tests/extension/test_app_extension.py:307
Method
test_existing_vary_headers
()
tests/decorator/test_vary_header.py:40
Method
test_exposed
(self)
tests/extension/test_app_extension.py:187
Method
test_exposed
(self)
tests/extension/test_app_extension.py:232
Method
test_flexible_str_set
(self)
tests/core/helper_tests.py:27
Method
test_flexible_str_str
(self)
tests/core/helper_tests.py:24
Method
test_get
()
tests/decorator/test_methods.py:30
Method
test_get_allow_headers_empty
(self)
tests/core/helper_tests.py:43
Method
test_get_allow_headers_matching
(self)
tests/core/helper_tests.py:49
Method
test_get_allow_headers_matching_none
(self)
tests/core/helper_tests.py:58
Method
test_index
If regex does not match, do not set CORS
tests/extension/test_app_extension.py:310
Method
test_list
()
tests/decorator/test_origins.py:46
Method
test_list
()
tests/extension/test_app_extension.py:57
Method
test_list_serialized
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed.
tests/decorator/test_origins.py:122
Method
test_list_serialized
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed.
tests/extension/test_app_extension.py:91
Method
test_methods_defined
If the methods parameter is defined, it should override the default methods defined by the user.
tests/decorator/test_methods.py:44
Method
test_multiple_protocols
()
tests/decorator/test_origins.py:81
Method
test_multiple_set_cookie_headers
()
tests/decorator/test_duplicate_headers.py:22
Method
test_no_acl_abort_404
HTTP Responses generated by calling abort are handled identically to normal responses, and should be wrapped by CORS headers
tests/decorator/test_exception_interception.py:60
Method
test_no_acl_abort_500
HTTP Responses generated by calling abort are handled identically to normal responses, and should be wrapped by CORS headers
tests/decorator/test_exception_interception.py:80
Function
test_no_acl_uncaught_exception_500
()
tests/decorator/test_exception_interception.py:37
Method
test_no_acl_uncaught_exception_500
Uncaught exceptions will trigger Flask's internal exception handler, and should have ACL headers only if intercept_exceptions
tests/decorator/test_exception_interception.py:103
Method
test_no_options_and_not_auto
()
tests/decorator/test_options.py:30
Method
test_not_matching_origins
(self)
tests/decorator/test_origins.py:146
Method
test_not_matching_origins
(self)
tests/extension/test_app_extension.py:115
Method
test_options_and_not_auto
()
tests/decorator/test_options.py:35
Method
test_other_exposed
(self)
tests/extension/test_app_extension.py:192
Method
test_override
()
tests/decorator/test_expose_headers.py:27
Method
test_override
(self)
tests/extension/test_app_extension.py:250
Method
test_override_headers
Ensure we work even if response.headers is set to something other than a MultiDict.
tests/core/test_override_headers.py:25
Method
test_parse_resources_sorted
(self)
tests/core/helper_tests.py:68
Method
test_probably_regex
(self)
tests/core/helper_tests.py:84
Method
test_regex_list
()
tests/decorator/test_origins.py:71
Method
test_regex_list
(self)
tests/extension/test_app_extension.py:136
Method
test_regex_mixed_list
()
tests/decorator/test_origins.py:76
Method
test_regex_mixed_list
Tests the corner case occurs when the send_always setting is True and no Origin header in the request, it is not possible to
tests/extension/test_app_extension.py:144
Method
test_send_wildcard_with_origin
()
tests/decorator/test_origins.py:41
Method
test_send_wildcard_with_origin
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be included.
tests/extension/test_app_extension.py:83
Method
test_serialize_options
(self)
tests/core/helper_tests.py:31
Method
test_set
()
tests/decorator/test_origins.py:56
Method
test_set
()
tests/extension/test_app_extension.py:65
Method
test_set_serialized
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed back.
tests/decorator/test_origins.py:136
Method
test_set_serialized
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed back.
tests/extension/test_app_extension.py:105
Method
test_string
()
tests/decorator/test_max_age.py:30
Method
test_string
()
tests/decorator/test_origins.py:51
Method
test_string
()
tests/extension/test_app_extension.py:61
Method
test_string_serialized
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed back.
tests/decorator/test_origins.py:129
Method
test_string_serialized
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed back.
tests/extension/test_app_extension.py:98
Method
test_subdomain_regex
()
tests/decorator/test_origins.py:61
Method
test_subdomain_regex
(self)
tests/extension/test_app_extension.py:119
Method
test_time_delta
()
tests/decorator/test_max_age.py:35
Method
test_try_match
(self)
tests/core/helper_tests.py:20
Method
test_unexposed
(self)
tests/extension/test_app_extension.py:197
Method
test_unexposed
(self)
tests/extension/test_app_extension.py:244
Method
test_value_error
(self)
tests/extension/test_app_extension.py:264
Method
test_value_error
Ensure we do not error if the user specifies an bad regular expression.
tests/extension/test_app_extension.py:364
Method
test_vary
()
tests/decorator/test_vary_header.py:35
Method
test_varying_origin
Resources that wish to enable themselves to be shared with multiple Origins but do not respond uniformly with "*" must in pra
tests/decorator/test_vary_header.py:60
Method
test_wildcard
()
tests/extension/test_app_extension.py:303
Method
test_wildcard_default_origins
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed back.
tests/decorator/test_w3.py:60
Method
test_wildcard_no_origin_header
If there is no Origin header in the request, the Access-Control-Allow-Origin header should not be included.
tests/decorator/test_w3.py:53
Method
test_wildcard_origin_header
If there is an Origin header in the request, the Access-Control-Allow-Origin header should be echoed back.
tests/decorator/test_w3.py:41
Method
unexposed
()
tests/extension/test_app_extension.py:176
Method
wildcard
()
tests/decorator/test_vary_header.py:25
Method
wildcard
()
tests/decorator/test_origins.py:26
Method
wildcard
()
tests/extension/test_app_extension.py:49
Function
wrapped_function
(*args, **kwargs)
flask_cors/decorator.py:123
Method
wrapped_function
(*args, **kwargs)
flask_cors/extension.py:175
← previous
101–195 of 195, ranked by callers