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:
parent
224ebeab8f
commit
056b07ea71
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue