summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2016-01-08 10:23:34 -0800
committerMichael Krotscheck <krotscheck@gmail.com>2016-01-08 11:29:33 -0800
commit26b552f53d1fef997b3e1a4b46faa752155a6654 (patch)
treea76edd622ac729ba1adfa461bab3555a0f26d631 /etc
parentc5549259ba7633f4ec2faaa204dd7d4039668a9f (diff)
downloadheat-26b552f53d1fef997b3e1a4b46faa752155a6654.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 heat'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: Ic32d7d2b8d5e1433f806753e94abdc727db07c68
Diffstat (limited to 'etc')
-rw-r--r--etc/heat/api-paste.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/heat/api-paste.ini b/etc/heat/api-paste.ini
index b0613156a..a576439c3 100644
--- a/etc/heat/api-paste.ini
+++ b/etc/heat/api-paste.ini
@@ -59,6 +59,9 @@ heat.filter_factory = heat.api.openstack:version_negotiation_filter
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = heat
+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:faultwrap]
paste.filter_factory = heat.common.wsgi:filter_factory