Stop using deprecated CORS.set_latent()

As a follow up to Icd44684b3d05ff6a07665348c08adff8245f2523
Use cors.set_defaults instead of app.set_latent.

Change-Id: I0dfe41ecb95182ce9a66d247f7120dadf3ae4b9f
This commit is contained in:
Nir Magnezi 2017-08-01 13:01:11 +03:00
parent 224ebeab8f
commit 056b07ea71
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def _wrap_app(app):
# middleware - are annotated with CORS headers, and thus accessible
# by the browser.
app = cors.CORS(app, 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',