MCPcopy Create free account

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

Functions195 in github.com/corydolphin/flask-cors

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_compiled_regex
Ensure we do not error if the user specifies an bad regular expression.
tests/extension/test_app_extension.py:339
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_unsupported
()
tests/decorator/test_credentials.py:30
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
By default match all.
tests/extension/test_app_extension.py:274
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:307
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/helper_tests.py:27
Methodtest_flexible_str_str
(self)
tests/core/helper_tests.py:24
Methodtest_get
()
tests/decorator/test_methods.py:30
Methodtest_get_allow_headers_empty
(self)
tests/core/helper_tests.py:43
Methodtest_get_allow_headers_matching
(self)
tests/core/helper_tests.py:49
Methodtest_get_allow_headers_matching_none
(self)
tests/core/helper_tests.py:58
Methodtest_index
If regex does not match, do not set CORS
tests/extension/test_app_extension.py:310
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/helper_tests.py:68
Methodtest_probably_regex
(self)
tests/core/helper_tests.py:84
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/helper_tests.py:31
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_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
Methodtest_subdomain_regex
(self)
tests/extension/test_app_extension.py:119
Methodtest_time_delta
()
tests/decorator/test_max_age.py:35
Methodtest_try_match
(self)
tests/core/helper_tests.py:20
Methodtest_unexposed
(self)
tests/extension/test_app_extension.py:197
Methodtest_unexposed
(self)
tests/extension/test_app_extension.py:244
Methodtest_value_error
(self)
tests/extension/test_app_extension.py:264
Methodtest_value_error
Ensure we do not error if the user specifies an bad regular expression.
tests/extension/test_app_extension.py:364
Methodtest_vary
()
tests/decorator/test_vary_header.py:35
Methodtest_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
Methodtest_wildcard
()
tests/extension/test_app_extension.py:303
Methodtest_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
Methodtest_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
Methodtest_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
Methodunexposed
()
tests/extension/test_app_extension.py:176
Methodwildcard
()
tests/decorator/test_vary_header.py:25
Methodwildcard
()
tests/decorator/test_origins.py:26
Methodwildcard
()
tests/extension/test_app_extension.py:49
Functionwrapped_function
(*args, **kwargs)
flask_cors/decorator.py:123
Methodwrapped_function
(*args, **kwargs)
flask_cors/extension.py:175
← previous101–195 of 195, ranked by callers