Adrian Smith 89ee10bd92 Add handler for CORS "actual requests"
Fix for bug 1095130

* Added a wrapper function around public methods to handle
  CORS actual requests. These requests need to return some
  extra headers to be valid responses to a CORS request.
  Access-Control-Expose-Headers and Access-Control-Allow-Origin.

* Added support for the CORS header Access-Control-Expose-Headers.

* Some refactoring of the OPTIONS method so the
  "is_origin_allowed" logic can be reused.

* Added a little extra detail to the CORS documentation.

DocImpact

Change-Id: I68538e472a900775427f21a8a59e738a83dcc8bc
2013-01-23 19:31:18 +00:00

2.4 KiB

Misc

Exceptions

swift.common.exceptions

Constraints

swift.common.constraints

Utils

swift.common.utils

TempAuth

swift.common.middleware.tempauth

ACLs

swift.common.middleware.acl

WSGI

swift.common.wsgi

Direct Client

swift.common.direct_client

Internal Client

swift.common.internal_client

Buffered HTTP

swift.common.bufferedhttp

Healthcheck

swift.common.middleware.healthcheck

Recon

swift.common.middleware.recon

MemCacheD

swift.common.memcached

Manager

swift.common.manager

Ratelimit

swift.common.middleware.ratelimit

StaticWeb

swift.common.middleware.staticweb

TempURL

swift.common.middleware.tempurl

FormPost

swift.common.middleware.formpost

Domain Remap

swift.common.middleware.domain_remap

CNAME Lookup

swift.common.middleware.cname_lookup

Proxy Logging

swift.common.middleware.proxy_logging