Merge "Stop using deprecated CORS.set_latent()"
This commit is contained in:
commit
310f83bc4e
@ -90,7 +90,7 @@ def _wrap_app(app):
|
|||||||
# middleware - are annotated with CORS headers, and thus accessible
|
# middleware - are annotated with CORS headers, and thus accessible
|
||||||
# by the browser.
|
# by the browser.
|
||||||
app = cors.CORS(app, cfg.CONF)
|
app = cors.CORS(app, cfg.CONF)
|
||||||
app.set_latent(
|
cors.set_defaults(
|
||||||
allow_headers=['X-Auth-Token', 'X-Identity-Status', 'X-Roles',
|
allow_headers=['X-Auth-Token', 'X-Identity-Status', 'X-Roles',
|
||||||
'X-Service-Catalog', 'X-User-Id', 'X-Tenant-Id',
|
'X-Service-Catalog', 'X-User-Id', 'X-Tenant-Id',
|
||||||
'X-OpenStack-Request-ID',
|
'X-OpenStack-Request-ID',
|
||||||
|
Loading…
Reference in New Issue
Block a user