Use set_defaults from cors
cors provides set_defaults method about 2.5 year ago [1], let's call it a long debt gets paid. [1] https://review.openstack.org/#/c/285368 Change-Id: I566eb874d401772255b45e36135592bd736528e5
This commit is contained in:
parent
34b150340c
commit
da40b42bc4
@ -39,9 +39,7 @@ def set_config_defaults():
|
||||
|
||||
def set_cors_middleware_defaults():
|
||||
"""Update default configuration options for oslo.middleware."""
|
||||
# TODO(krotscheck): Update with https://review.openstack.org/#/c/285368/
|
||||
cfg.set_defaults(
|
||||
cors.CORS_OPTS,
|
||||
cors.set_defaults(
|
||||
allow_headers=['X-Auth-Token',
|
||||
MIN_VERSION_HEADER,
|
||||
MAX_VERSION_HEADER,
|
||||
|
Loading…
x
Reference in New Issue
Block a user