Merge "cors: update default configuration in config"

This commit is contained in:
Jenkins
2017-01-10 19:59:49 +00:00
committed by Gerrit Code Review

View File

@@ -12,15 +12,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_config import cfg
from oslo_middleware import cors from oslo_middleware import cors
def set_middleware_defaults(): def set_middleware_defaults():
"""Update default configuration options for oslo.middleware.""" """Update default configuration options for oslo.middleware."""
# CORS Defaults cors.set_defaults(
# TODO(krotscheck): Update with https://review.openstack.org/#/c/285368/
cfg.set_defaults(cors.CORS_OPTS,
allow_headers=['X-Auth-Token', allow_headers=['X-Auth-Token',
'X-Openstack-Request-Id', 'X-Openstack-Request-Id',
'X-Identity-Status', 'X-Identity-Status',