summaryrefslogtreecommitdiff
path: root/etc/trove
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2016-01-08 10:42:32 -0800
committerMichael Krotscheck <krotscheck@gmail.com>2016-01-08 11:26:40 -0800
commit1fe8c0bac1fe5590e14c4fca711a2aa5ab5dd101 (patch)
treebd7498bd4c14a6fe789087d018d931144ba669e6 /etc/trove
parent5153cb8231745515fdf1f11ff10113b364c4b8ea (diff)
downloadtrove-1fe8c0bac1fe5590e14c4fca711a2aa5ab5dd101.tar.gz
Added Keystone and RequestID headers to CORS middleware
CORS middleware's latent configuration feature, new in 3.0.0, allows adding headers that apply to all valid origins. This patch adds headers commonly used in openstack to trove's paste pipeline, so that operators do not have to be aware of additional configuration magic to ensure that browsers can talk to the API. For more information: http://docs.openstack.org/developer/oslo.middleware/cors.html#configuration-for-pastedeploy Change-Id: Idf2cd7a0d0d701002f2c1f178475da39ae1a9caf
Diffstat (limited to 'etc/trove')
-rw-r--r--etc/trove/api-paste.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/trove/api-paste.ini b/etc/trove/api-paste.ini
index ea3612b9..f7cac61e 100644
--- a/etc/trove/api-paste.ini
+++ b/etc/trove/api-paste.ini
@@ -22,6 +22,9 @@ paste.filter_factory = trove.common.auth:AuthorizationMiddleware.factory
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = trove
+latent_allow_headers = X-Auth-Token, X-Identity-Status, X-Roles, X-Service-Catalog, X-User-Id, X-Tenant-Id, X-OpenStack-Request-ID
+latent_expose_headers = X-Auth-Token, X-Subject-Token, X-Service-Token, X-OpenStack-Request-ID
+latent_allow_methods = GET, PUT, POST, DELETE, PATCH
[filter:contextwrapper]
paste.filter_factory = trove.common.wsgi:ContextMiddleware.factory