The default values needed for magnum's implementation of cors middleware have been moved from paste.ini into the configuration hooks provided by oslo.config. Furthermore, these values have been added to the default initialization procedure. This ensures that if a value remains unset in the configuration file, it will fallback to using sane defaults. It also ensures that an operator modifying the configuration will be presented with that same set of defaults. Change-Id: I7d8f8708d53bbab117600070982ac80482fa0a77 Closes-Bug: 1551836
17 lines
434 B
INI
17 lines
434 B
INI
[pipeline:main]
|
|
pipeline = cors request_id authtoken api_v1
|
|
|
|
[app:api_v1]
|
|
paste.app_factory = magnum.api.app:app_factory
|
|
|
|
[filter:authtoken]
|
|
acl_public_routes = /, /v1
|
|
paste.filter_factory = magnum.api.middleware.auth_token:AuthTokenMiddleware.factory
|
|
|
|
[filter:request_id]
|
|
paste.filter_factory = oslo_middleware:RequestId.factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = magnum
|