Use cors.set_defaults instead of cfg.set_defaults
Cors has been added setdefaults method, just use it. Related link: https://review.openstack.org/#/c/285368/ Change-Id: I26e1ecdf4a92ab55eeb794a0df7ba6a323f9141a
This commit is contained in:
parent
44ce1d4d29
commit
ed59f6bd1a
@ -188,9 +188,7 @@ def verify_share_protocols():
|
||||
|
||||
def set_middleware_defaults():
|
||||
"""Update default configuration options for oslo.middleware."""
|
||||
# CORS Defaults
|
||||
# TODO(krotscheck): Update with https://review.openstack.org/#/c/285368/
|
||||
cfg.set_defaults(cors.CORS_OPTS,
|
||||
cors.set_defaults(
|
||||
allow_headers=['X-Auth-Token',
|
||||
'X-OpenStack-Request-ID',
|
||||
'X-Openstack-Manila-Api-Version',
|
||||
|
Loading…
Reference in New Issue
Block a user