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 searchlight'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: I9b7e2436f882ec778ea6880d5982a28f5c1c8959
This commit is contained in:
parent
756c9c003d
commit
fde1a60ab4
|
@ -32,4 +32,6 @@ paste.filter_factory = searchlight.api.middleware.context:ContextMiddleware.fact
|
|||
[filter:cors]
|
||||
paste.filter_factory = oslo_middleware.cors:filter_factory
|
||||
oslo_config_project = searchlight
|
||||
|
||||
latent_allow_headers = X-Auth-Token, X-OpenStack-Request-ID
|
||||
latent_expose_headers = X-OpenStack-Request-ID
|
||||
latent_allow_methods = GET, POST
|
||||
|
|
Loading…
Reference in New Issue