Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corydolphin/flask-cors
/ functions
Functions
219 in github.com/corydolphin/flask-cors
⨍
Functions
219
◇
Types & classes
30
↳
Endpoints
71
Function
supports_no_app
()
tests/typecheck/test_blueprint_typing.py:32
Function
test_acl_abort_404
()
tests/decorator/test_exception_interception.py:24
Method
test_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:49
Function
test_acl_abort_500
()
tests/decorator/test_exception_interception.py:29
Method
test_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:70
Method
test_acl_exception_with_error_handler
If a 500 handler is setup by the user, responses should have CORS matching rules applied, regardless of whether or not
tests/decorator/test_exception_interception.py:116
Method
test_acl_exception_with_error_handler
If a 500 handler is setup by the user, responses should have CORS matching rules applied, regardless of whether or not
tests/decorator/test_exception_interception.py:167
Function
test_acl_uncaught_exception_500
()
tests/decorator/test_exception_interception.py:33
Method
test_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:90
Method
test_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:208
Method
test_allow_headers
()
tests/decorator/test_allow_headers.py:27
Method
test_allow_headers_no_request_headers
No ACL_REQUEST_HEADERS sent, ACL_ALLOW_HEADERS should be empty
tests/decorator/test_allow_headers.py:40
Method
test_allow_headers_regex
()
tests/decorator/test_allow_headers.py:32
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_blueprint_init_app
Blueprints should also be configurable via ``init_app``.
tests/extension/test_blueprint.py:51
Method
test_blueprint_non_matching_route_has_no_cors
Routes that do not match the configured resource should not have CORS headers set.
tests/extension/test_blueprint.py:44
Method
test_blueprint_resource_has_cors
Routes registered on a CORS-enabled blueprint and matching the configured resource should receive CORS headers.
tests/extension/test_blueprint.py:37
Method
test_compiled_regex
Ensure we do not error if the user specifies an bad regular expression.
tests/extension/test_app_extension.py:336
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_supported
The specified route should return the Access-Control-Allow-Credentials header.
tests/decorator/test_private_network_headers.py:29
Method
test_credentials_unsupported
()
tests/decorator/test_credentials.py:30
Method
test_credentials_unsupported
()
tests/decorator/test_private_network_headers.py:21
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
()
tests/decorator/test_private_network_headers.py:26
Method
test_default
By default match all.
tests/extension/test_app_extension.py:271
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:304
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/test_helpers.py:32
Method
test_flexible_str_str
(self)
tests/core/test_helpers.py:29
Method
test_get
()
tests/decorator/test_methods.py:30
Method
test_get_allow_headers_empty
(self)
tests/core/test_helpers.py:48
Method
test_get_allow_headers_matching
(self)
tests/core/test_helpers.py:54
Method
test_get_allow_headers_matching_none
(self)
tests/core/test_helpers.py:63
Method
test_index
If regex does not match, do not set CORS
tests/extension/test_app_extension.py:307
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/test_helpers.py:73
Method
test_plus_path_origin_allowed
Ensure that CORS matches + literally and allows the correct origin
tests/extension/test_app_extension.py:401
Method
test_plus_path_rejects_other_origin
Origin not allowed for + path should be rejected
tests/extension/test_app_extension.py:417
Method
test_private_network_supported
()
tests/decorator/test_private_network_headers.py:16
Method
test_probably_regex
(self)
tests/core/test_helpers.py:89
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/test_helpers.py:36
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_space_path_origin_allowed
Ensure that CORS treats /service path differently and allows correct origin
tests/extension/test_app_extension.py:409
Method
test_space_path_rejects_other_origin
Origin not allowed for space path should be rejected
tests/extension/test_app_extension.py:425
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
← previous
next →
101–200 of 219, ranked by callers