swift/swift/common/middleware
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
..
crypto replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
s3api s3api: Allow CORS preflight requests 2021-03-15 13:52:05 -07:00
versioned_writes New proxy logging field for wire status 2020-10-07 01:01:40 +00:00
x_profile Update hacking for Python3 2020-04-03 21:21:07 +02:00
__init__.py Rewrite redirection in cname_lookup & domain_remap 2017-05-11 09:46:29 -04:00
account_quotas.py enforce account quotas on empty accounts 2020-01-31 09:39:17 -08:00
acl.py Use `==` to compare against the empty string, not `is` 2019-10-14 17:40:42 -07:00
bulk.py New Object Versioning mode 2020-01-24 17:39:56 -08:00
catch_errors.py Merge "Content-Length enforcement fixups" 2018-06-29 05:43:39 +00:00
cname_lookup.py Ensure domain stored in memcached gets utf8 decoded on py2 2020-02-11 14:42:33 -08:00
container_quotas.py Refactor server side copy as middleware 2016-05-11 14:55:51 -04:00
container_sync.py New Object Versioning mode 2020-01-24 17:39:56 -08:00
copy.py New Object Versioning mode 2020-01-24 17:39:56 -08:00
crossdomain.py py3: port crossdomain 2018-06-26 13:20:49 -07:00
dlo.py replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
domain_remap.py py3: Fix non-ascii chars in staticweb listings 2020-09-06 22:04:06 -07:00
etag_quoter.py py3: Make etag-quoter work 2020-04-21 12:27:12 -07:00
formpost.py py3: Fix formpost unicode filename issues 2020-01-15 16:52:37 -08:00
gatekeeper.py Allow internal clients to use reserved namespace 2019-11-27 11:22:00 -06:00
healthcheck.py py3: port healthcheck 2018-06-26 13:20:49 -07:00
keystoneauth.py Add a read-only role to keystoneauth 2021-02-08 22:02:17 -06:00
list_endpoints.py Update SAIO & docker image to use 62xx ports 2020-07-20 15:17:12 -07:00
listing_formats.py Fix up some Content-Type handling in account/container listings 2020-02-28 18:32:38 -08:00
memcache.py Memcached client TLS support 2021-01-06 09:47:38 -08:00
name_check.py Update hacking for Python3 2020-04-03 21:21:07 +02:00
proxy_logging.py Stop explicitly handling StopIteration in proxy-logging 2020-11-18 11:46:03 -08:00
ratelimit.py Merge "ratelimit: Log proper container path when returning 498 for listings" 2020-12-09 08:48:10 +00:00
read_only.py Read-only middleware fixups 2018-06-11 10:05:49 -07:00
recon.py Merge "Plumb sharding stats though recon middleware" 2021-02-26 18:42:21 +00:00
slo.py replace md5 with swift utils version 2020-12-15 09:52:55 -05:00
staticweb.py py3: Fix non-ascii chars in staticweb listings 2020-09-06 22:04:06 -07:00
symlink.py versioning: Have versioning symlinks make pre-auth requests to reserved container 2020-05-26 10:09:56 -05:00
tempauth.py tempauth: Add .reseller_reader group 2021-02-09 16:35:03 -08:00
tempurl.py py3: Port the tempurl middleware 2019-06-20 12:41:50 -07:00
xprofile.py Python3: fix test_xprofile.py 2018-12-12 20:26:10 +01:00