Use default cors config also when run as wsgi app
This fixes Glance CORS behind uWSGI as used in devstack. Change-Id: If82d9b396afd87c65e035868b595ff5683cb19f6 Closes-bug: #1861334
This commit is contained in:
parent
26c5c8dff6
commit
9a6fcc2ea5
@ -65,6 +65,7 @@ def _setup_os_profiler():
|
||||
|
||||
|
||||
def init_app():
|
||||
config.set_config_defaults()
|
||||
config_files = _get_config_files()
|
||||
CONF([], project='glance', default_config_files=config_files)
|
||||
logging.setup(CONF, "glance")
|
||||
|
6
releasenotes/notes/bug-1861334-ebc2026b85675d47.yaml
Normal file
6
releasenotes/notes/bug-1861334-ebc2026b85675d47.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Bug 1861334_: cors config defaults not used when Glance is run as WSGI app
|
||||
|
||||
.. _1861334: https://bugs.launchpad.net/glance/+bug/1861334
|
Loading…
Reference in New Issue
Block a user