Merge "cors: update default configuration"
This commit is contained in:
commit
36558bae05
@ -15,7 +15,6 @@
|
|||||||
# 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
|
||||||
|
|
||||||
from zun.common import rpc
|
from zun.common import rpc
|
||||||
@ -38,22 +37,22 @@ def set_config_defaults():
|
|||||||
|
|
||||||
def set_cors_middleware_defaults():
|
def set_cors_middleware_defaults():
|
||||||
"""Update default configuration options for oslo.middleware."""
|
"""Update default configuration options for oslo.middleware."""
|
||||||
cfg.set_defaults(cors.CORS_OPTS,
|
cors.set_defaults(
|
||||||
allow_headers=['X-Auth-Token',
|
allow_headers=['X-Auth-Token',
|
||||||
'X-Identity-Status',
|
'X-Identity-Status',
|
||||||
'X-Roles',
|
'X-Roles',
|
||||||
'X-Service-Catalog',
|
'X-Service-Catalog',
|
||||||
'X-User-Id',
|
'X-User-Id',
|
||||||
'X-Project-Id',
|
'X-Project-Id',
|
||||||
'X-OpenStack-Request-ID',
|
'X-OpenStack-Request-ID',
|
||||||
'X-Server-Management-Url'],
|
'X-Server-Management-Url'],
|
||||||
expose_headers=['X-Auth-Token',
|
expose_headers=['X-Auth-Token',
|
||||||
'X-Subject-Token',
|
'X-Subject-Token',
|
||||||
'X-Service-Token',
|
'X-Service-Token',
|
||||||
'X-OpenStack-Request-ID',
|
'X-OpenStack-Request-ID',
|
||||||
'X-Server-Management-Url'],
|
'X-Server-Management-Url'],
|
||||||
allow_methods=['GET',
|
allow_methods=['GET',
|
||||||
'PUT',
|
'PUT',
|
||||||
'POST',
|
'POST',
|
||||||
'DELETE',
|
'DELETE',
|
||||||
'PATCH'])
|
'PATCH'])
|
||||||
|
Loading…
Reference in New Issue
Block a user