Merge "Update method cfg.set_defaults"
This commit is contained in:
commit
0fd07288a5
@ -1569,23 +1569,21 @@ def get_configuration_property(property_name):
|
|||||||
def set_api_config_defaults():
|
def set_api_config_defaults():
|
||||||
"""This method updates all configuration default values."""
|
"""This method updates all configuration default values."""
|
||||||
|
|
||||||
# CORS Middleware Defaults
|
cors.set_defaults(
|
||||||
# TODO(krotscheck): Update with https://review.openstack.org/#/c/285368/
|
allow_headers=['X-Auth-Token',
|
||||||
cfg.set_defaults(cors.CORS_OPTS,
|
'X-Identity-Status',
|
||||||
allow_headers=['X-Auth-Token',
|
'X-Roles',
|
||||||
'X-Identity-Status',
|
'X-Service-Catalog',
|
||||||
'X-Roles',
|
'X-User-Id',
|
||||||
'X-Service-Catalog',
|
'X-Tenant-Id',
|
||||||
'X-User-Id',
|
'X-OpenStack-Request-ID'],
|
||||||
'X-Tenant-Id',
|
expose_headers=['X-Auth-Token',
|
||||||
'X-OpenStack-Request-ID'],
|
'X-Subject-Token',
|
||||||
expose_headers=['X-Auth-Token',
|
'X-Service-Token',
|
||||||
'X-Subject-Token',
|
'X-OpenStack-Request-ID'],
|
||||||
'X-Service-Token',
|
allow_methods=['GET',
|
||||||
'X-OpenStack-Request-ID'],
|
'PUT',
|
||||||
allow_methods=['GET',
|
'POST',
|
||||||
'PUT',
|
'DELETE',
|
||||||
'POST',
|
'PATCH']
|
||||||
'DELETE',
|
)
|
||||||
'PATCH']
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user