Merge "Stop using deprecated CORS.set_latent()"

This commit is contained in:
Jenkins 2017-08-06 05:58:17 +00:00 committed by Gerrit Code Review
commit 0423f86b4a
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,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-Openstack-Request-Id'],
allow_methods=['GET', 'PUT', 'POST', 'DELETE'],
expose_headers=['X-Auth-Token', 'X-Openstack-Request-Id']