swift/test/unit/common
Tim Burke 27a734c78a s3api: Allow CORS preflight requests
Unfortunately, we can't identify the user, so we can't map to an
account, so we can't respect whatever CORS metadata might be set on the
container.

As a result, the allowed origins must be configured cluster-wide. Add a
new config option, cors_preflight_allow_origin, for that; default it
to blank (ie, deny preflights from all origins, preserving existing
behavior), but allow either a comma-separated list of origins or
* (to allow all origins).

Change-Id: I985143bf03125a05792e79bc5e5f83722d6431b3
Co-Authored-By: Matthew Oliver <matt@oliver.net.au>
2021-03-15 13:52:05 -07:00
..
middleware s3api: Allow CORS preflight requests 2021-03-15 13:52:05 -07:00
ring ring: Prevent IndexErrors in calc_replica_count 2021-01-22 14:06:02 -08:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
corrupted_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_schema_example.db Quarantine malformed database schema SQLite errors 2016-12-01 14:17:02 +11:00
missing_container_info.db Quarantine DB without *_stat row 2018-02-07 19:35:05 +01:00
test_base_storage_server.py Allow replication servers to handle all request methods 2020-07-23 09:11:07 -07:00
test_bufferedhttp.py bufferedhttp: ensure query params are properly quoted 2019-09-12 11:48:03 -07:00
test_constraints.py Deprecate per-service auto_create_account_prefix 2020-01-05 09:53:30 -06:00
test_container_sync_realms.py Python3: Fix test/unit/common/test_container_sync_realms.py 2019-01-29 09:04:36 -06:00
test_daemon.py Clean up HASH_PATH_* patching 2018-11-01 20:52:33 +00:00
test_db.py Do not delete root_path on ContainerBroker.delete_db 2021-02-04 10:15:30 +00:00
test_db_replicator.py replication: Allow databases_per_second to be a float 2020-05-15 13:23:17 -07:00
test_direct_client.py Plumb sharding stats though recon middleware 2021-02-26 15:51:06 +00:00
test_exceptions.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_header_key_dict.py py3: Fix title-casing in HeaderKeyDict 2019-07-25 12:55:03 -07:00
test_internal_client.py Log storage policy with s3api requests 2020-10-01 17:18:13 -07:00
test_linkat.py Fix tests using O_TMPFILE 2018-03-13 12:06:07 +00:00
test_manager.py Merge "Monkey-patch in tests using mock.patch" 2021-01-17 02:53:06 +00:00
test_memcached.py Merge "memcache: Log errors encountered when setting keys" 2021-01-26 22:29:56 +00:00
test_request_helpers.py Use cached shard ranges for container GETs 2021-01-06 16:28:49 +00:00
test_splice.py No longer import nose 2017-11-07 15:39:25 +11:00
test_storage_policy.py Fix invalid assert states 2019-07-01 09:20:02 +08:00
test_swob.py Simplify wsgify() 2020-05-27 03:19:13 +00:00
test_utils.py relinker: Warn on unmounted disks 2021-02-11 11:31:39 -08:00
test_wsgi.py Use socket_timeout kwarg instead of useless eventlet.wsgi.WRITE_TIMEOUT 2020-11-11 14:23:40 -08:00