MCPcopy Create free account

hub / github.com/corydolphin/flask-cors / functions

Functions219 in github.com/corydolphin/flask-cors

Functionsupports_no_app
()
tests/typecheck/test_blueprint_typing.py:32
Functiontest_acl_abort_404
()
tests/decorator/test_exception_interception.py:24
Methodtest_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
Functiontest_acl_abort_500
()
tests/decorator/test_exception_interception.py:29
Methodtest_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
Methodtest_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
Methodtest_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
Functiontest_acl_uncaught_exception_500
()
tests/decorator/test_exception_interception.py:33
Methodtest_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
Methodtest_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
Methodtest_allow_headers
()
tests/decorator/test_allow_headers.py:27
Methodtest_allow_headers_no_request_headers
No ACL_REQUEST_HEADERS sent, ACL_ALLOW_HEADERS should be empty
tests/decorator/test_allow_headers.py:40
Methodtest_allow_headers_regex
()
tests/decorator/test_allow_headers.py:32
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_always_send
()
tests/decorator/test_origins.py:31
Methodtest_always_send_no_wildcard
()
tests/decorator/test_origins.py:36
Methodtest_always_send_no_wildcard_origins
(self)
tests/decorator/test_origins.py:108
Methodtest_blueprint_init_app
Blueprints should also be configurable via ``init_app``.
tests/extension/test_blueprint.py:51
Methodtest_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
Methodtest_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
Methodtest_compiled_regex
Ensure we do not error if the user specifies an bad regular expression.
tests/extension/test_app_extension.py:336
Methodtest_compiled_subdomain_regex
()
tests/decorator/test_origins.py:66
Methodtest_compiled_subdomain_regex
(self)
tests/extension/test_app_extension.py:126
Methodtest_consistent
()
tests/decorator/test_vary_header.py:30
Methodtest_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
Methodtest_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
Methodtest_credentials_supported
()
tests/decorator/test_credentials.py:25
Methodtest_credentials_supported
The specified route should return the Access-Control-Allow-Credentials header.
tests/decorator/test_private_network_headers.py:29
Methodtest_credentials_unsupported
()
tests/decorator/test_credentials.py:30
Methodtest_credentials_unsupported
()
tests/decorator/test_private_network_headers.py:21
Methodtest_default
()
tests/decorator/test_allow_headers.py:21
Methodtest_default
By default, allow all domains, which means the Vary:Origin header should be set.
tests/decorator/test_vary_header.py:44
Methodtest_default
()
tests/decorator/test_expose_headers.py:22
Methodtest_default
()
tests/decorator/test_credentials.py:35
Methodtest_default
()
tests/decorator/test_options.py:25
Methodtest_default
()
tests/decorator/test_private_network_headers.py:26
Methodtest_default
By default match all.
tests/extension/test_app_extension.py:271
Methodtest_defaults
Access-Control-Allow-Methods headers should only be returned if the client makes an OPTIONS request.
tests/decorator/test_methods.py:33
Methodtest_defaults
The default behavior should automatically provide OPTIONS and return CORS headers.
tests/decorator/test_options.py:38
Methodtest_defaults
By default, no max-age headers should be returned
tests/decorator/test_max_age.py:38
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_exact_match
()
tests/extension/test_app_extension.py:304
Methodtest_existing_vary_headers
()
tests/decorator/test_vary_header.py:40
Methodtest_exposed
(self)
tests/extension/test_app_extension.py:187
Methodtest_exposed
(self)
tests/extension/test_app_extension.py:232
Methodtest_flexible_str_set
(self)
tests/core/test_helpers.py:32
Methodtest_flexible_str_str
(self)
tests/core/test_helpers.py:29
Methodtest_get
()
tests/decorator/test_methods.py:30
Methodtest_get_allow_headers_empty
(self)
tests/core/test_helpers.py:48
Methodtest_get_allow_headers_matching
(self)
tests/core/test_helpers.py:54
Methodtest_get_allow_headers_matching_none
(self)
tests/core/test_helpers.py:63
Methodtest_index
If regex does not match, do not set CORS
tests/extension/test_app_extension.py:307
Methodtest_list
()
tests/decorator/test_origins.py:46
Methodtest_list
()
tests/extension/test_app_extension.py:57
Methodtest_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
Methodtest_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
Methodtest_methods_defined
If the methods parameter is defined, it should override the default methods defined by the user.
tests/decorator/test_methods.py:44
Methodtest_multiple_protocols
()
tests/decorator/test_origins.py:81
Methodtest_multiple_set_cookie_headers
()
tests/decorator/test_duplicate_headers.py:22
Methodtest_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
Methodtest_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
Functiontest_no_acl_uncaught_exception_500
()
tests/decorator/test_exception_interception.py:37
Methodtest_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
Methodtest_no_options_and_not_auto
()
tests/decorator/test_options.py:30
Methodtest_not_matching_origins
(self)
tests/decorator/test_origins.py:146
Methodtest_not_matching_origins
(self)
tests/extension/test_app_extension.py:115
Methodtest_options_and_not_auto
()
tests/decorator/test_options.py:35
Methodtest_other_exposed
(self)
tests/extension/test_app_extension.py:192
Methodtest_override
()
tests/decorator/test_expose_headers.py:27
Methodtest_override
(self)
tests/extension/test_app_extension.py:250
Methodtest_override_headers
Ensure we work even if response.headers is set to something other than a MultiDict.
tests/core/test_override_headers.py:25
Methodtest_parse_resources_sorted
(self)
tests/core/test_helpers.py:73
Methodtest_plus_path_origin_allowed
Ensure that CORS matches + literally and allows the correct origin
tests/extension/test_app_extension.py:401
Methodtest_plus_path_rejects_other_origin
Origin not allowed for + path should be rejected
tests/extension/test_app_extension.py:417
Methodtest_private_network_supported
()
tests/decorator/test_private_network_headers.py:16
Methodtest_probably_regex
(self)
tests/core/test_helpers.py:89
Methodtest_regex_list
()
tests/decorator/test_origins.py:71
Methodtest_regex_list
(self)
tests/extension/test_app_extension.py:136
Methodtest_regex_mixed_list
()
tests/decorator/test_origins.py:76
Methodtest_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
Methodtest_send_wildcard_with_origin
()
tests/decorator/test_origins.py:41
Methodtest_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
Methodtest_serialize_options
(self)
tests/core/test_helpers.py:36
Methodtest_set
()
tests/decorator/test_origins.py:56
Methodtest_set
()
tests/extension/test_app_extension.py:65
Methodtest_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
Methodtest_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
Methodtest_space_path_origin_allowed
Ensure that CORS treats /service path differently and allows correct origin
tests/extension/test_app_extension.py:409
Methodtest_space_path_rejects_other_origin
Origin not allowed for space path should be rejected
tests/extension/test_app_extension.py:425
Methodtest_string
()
tests/decorator/test_max_age.py:30
Methodtest_string
()
tests/decorator/test_origins.py:51
Methodtest_string
()
tests/extension/test_app_extension.py:61
Methodtest_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
Methodtest_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
Methodtest_subdomain_regex
()
tests/decorator/test_origins.py:61
← previousnext →101–200 of 219, ranked by callers