diff --git a/etc/murano/murano-paste.ini b/etc/murano/murano-paste.ini index 4fe252842..e51bcaee2 100644 --- a/etc/murano/murano-paste.ini +++ b/etc/murano/murano-paste.ini @@ -1,8 +1,8 @@ [pipeline:cloudfoundry] -pipeline = request_id ssl ext_context authtoken context cloudfoundryapi +pipeline = cors request_id ssl ext_context authtoken context cloudfoundryapi [pipeline:murano] -pipeline = request_id ssl versionnegotiation faultwrap authtoken context rootapp +pipeline = cors request_id ssl versionnegotiation faultwrap authtoken context rootapp [filter:context] paste.filter_factory = murano.api.middleware.context:ContextMiddleware.factory @@ -41,3 +41,10 @@ paste.filter_factory = murano.api.middleware.ssl:SSLMiddleware.factory [filter:ext_context] paste.filter_factory = murano.api.middleware.ext_context:ExternalContextMiddleware.factory + +[filter:cors] +paste.filter_factory = oslo_middleware.cors:filter_factory +oslo_config_project = murano +latent_allow_headers = X-Auth-Token, X-Openstack-Request-Id, X-Configuration-Session, X-Roles, X-User-Id, X-Tenant-Id +latent_expose_headers = X-Auth-Token, X-Openstack-Request-Id, X-Configuration-Session, X-Roles, X-User-Id, X-Tenant-Id +latent_allow_methods = GET, PUT, POST, DELETE, PATCH diff --git a/etc/oslo-config-generator/murano.conf b/etc/oslo-config-generator/murano.conf index c520848e7..908441e84 100644 --- a/etc/oslo-config-generator/murano.conf +++ b/etc/oslo-config-generator/murano.conf @@ -5,5 +5,6 @@ namespace = murano namespace = oslo.db namespace = oslo.log namespace = oslo.messaging +namespace = oslo.middleware.cors namespace = oslo.policy namespace = oslo.service.service