diff options
author | Michael Krotscheck <krotscheck@gmail.com> | 2016-01-08 11:18:51 -0800 |
---|---|---|
committer | Michael Krotscheck <krotscheck@gmail.com> | 2016-01-14 09:32:48 -0800 |
commit | 3d7ef0400e45b47fa369cfc498adbf76ad52f336 (patch) | |
tree | 258e8752da57728bb310538ba64216926aa26944 /etc/api-paste.ini | |
parent | 70cd83daf2a201705d1eb13dfd0786622312e2fa (diff) | |
download | neutron-3d7ef0400e45b47fa369cfc498adbf76ad52f336.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 neutron'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: Ic08fcb7833563bbeca3e0ba2d03438d4be594418
Diffstat (limited to 'etc/api-paste.ini')
-rw-r--r-- | etc/api-paste.ini | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/api-paste.ini b/etc/api-paste.ini index 3e79feb9e6..4884fe382c 100644 --- a/etc/api-paste.ini +++ b/etc/api-paste.ini @@ -17,8 +17,8 @@ paste.filter_factory = oslo_middleware:CatchErrors.factory [filter:cors] paste.filter_factory = oslo_middleware.cors:filter_factory oslo_config_project = neutron -latent_allow_headers = X-Auth-Token, X-Openstack-Request-Id -latent_expose_headers = X-Auth-Token, X-Openstack-Request-Id +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:keystonecontext] |