26e9105b62
This patch exposes the root (version) resource to CORS-enabled browser clients that wish to perform API version discovery. It does this by creating a new composite pipeline for the neutronversions app, adding the already-existing CORS middleware into the chain. This feature is required for js-openstack-lib, and its devstack tests. https://review.openstack.org/#/c/366905/ Change-Id: I6611839f38d553fc29c813a4b8d874fde77b8034 required-by: Ia2f59213eedf6d7acbb02789ee921c13ff391d09
43 lines
1.2 KiB
INI
43 lines
1.2 KiB
INI
[composite:neutron]
|
|
use = egg:Paste#urlmap
|
|
/: neutronversions_composite
|
|
/v2.0: neutronapi_v2_0
|
|
|
|
[composite:neutronapi_v2_0]
|
|
use = call:neutron.auth:pipeline_factory
|
|
noauth = cors request_id catch_errors extensions neutronapiapp_v2_0
|
|
keystone = cors request_id catch_errors authtoken keystonecontext extensions neutronapiapp_v2_0
|
|
|
|
[composite:neutronversions_composite]
|
|
use = call:neutron.auth:pipeline_factory
|
|
noauth = cors neutronversions
|
|
keystone = cors neutronversions
|
|
|
|
[filter:request_id]
|
|
paste.filter_factory = oslo_middleware:RequestId.factory
|
|
|
|
[filter:catch_errors]
|
|
paste.filter_factory = oslo_middleware:CatchErrors.factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = neutron
|
|
|
|
[filter:keystonecontext]
|
|
paste.filter_factory = neutron.auth:NeutronKeystoneContext.factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
|
|
|
[filter:extensions]
|
|
paste.filter_factory = neutron.api.extensions:plugin_aware_extension_middleware_factory
|
|
|
|
[app:neutronversions]
|
|
paste.app_factory = neutron.api.versions:Versions.factory
|
|
|
|
[app:neutronapiapp_v2_0]
|
|
paste.app_factory = neutron.api.v2.router:APIRouter.factory
|
|
|
|
[filter:osprofiler]
|
|
paste.filter_factory = osprofiler.web:WsgiMiddleware.factory
|