cors: update default configuration in config

Set_defautls has been added into oslo.middleware, so
we use it to overrive the configuration defaults.

Change-Id: I9696ad8210a0ee4fee6c0f78be777a5939b221a4
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
Chuck Short 2016-11-05 20:16:38 -04:00
parent cdaef22aea
commit 086b7a7de9
1 changed files with 18 additions and 21 deletions

View File

@ -12,15 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from oslo_middleware import cors
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-Identity-Status',