Merge "Stop using deprecated CORS.set_latent()"

This commit is contained in:
Jenkins 2016-11-17 01:13:17 +00:00 committed by Gerrit Code Review
commit 310f83bc4e

View File

@ -90,7 +90,7 @@ def _wrap_app(app):
# middleware - are annotated with CORS headers, and thus accessible
# by the browser.
app = cors.CORS(app, cfg.CONF)
app.set_latent(
cors.set_defaults(
allow_headers=['X-Auth-Token', 'X-Identity-Status', 'X-Roles',
'X-Service-Catalog', 'X-User-Id', 'X-Tenant-Id',
'X-OpenStack-Request-ID',