From 056b07ea716c1cbf76a0b73f7bf5c69ec73c2f69 Mon Sep 17 00:00:00 2001 From: Nir Magnezi Date: Tue, 1 Aug 2017 13:01:11 +0300 Subject: [PATCH] Stop using deprecated CORS.set_latent() As a follow up to Icd44684b3d05ff6a07665348c08adff8245f2523 Use cors.set_defaults instead of app.set_latent. Change-Id: I0dfe41ecb95182ce9a66d247f7120dadf3ae4b9f --- gluon/api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/api/app.py b/gluon/api/app.py index e3efac7..7838d98 100644 --- a/gluon/api/app.py +++ b/gluon/api/app.py @@ -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',