()
Update default configuration options for oslo.middleware.
Update default configuration options for oslo.middleware.
Update default configuration options for oslo . middleware .
def set_cors_middleware_defaults():
    """Update default configuration options for oslo.middleware."""
    cors.set_defaults(
        allow_headers=['X-Auth-Token',
                       'X-Identity-Status',
                       'X-Roles',
                       'X-Service-Catalog',
                       'X-User-Id',
                       'X-Tenant-Id',
                       'X-OpenStack-Request-ID',
                       'X-Server-Management-Url'],
        expose_headers=['X-Auth-Token',
                        'X-Subject-Token',
                        'X-Service-Token',
                        'X-OpenStack-Request-ID',
                        'X-Server-Management-Url'],
        allow_methods=['GET',
                       'PUT',
                       'POST',
                       'DELETE',
                       'PATCH']
    )
def set_cors_middleware_defaults ( ) : cors . set_defaults ( allow_headers = [ 'X-Auth-Token' , 'X-Identity-Status' , 'X-Roles' , 'X-Service-Catalog' , 'X-User-Id' , 'X-Tenant-Id' , 'X-OpenStack-Request-ID' , 'X-Server-Management-Url' ] , expose_headers = [ 'X-Auth-Token' , 'X-Subject-Token' , 'X-Service-Token' , 'X-OpenStack-Request-ID' , 'X-Server-Management-Url' ] , allow_methods = [ 'GET' , 'PUT' , 'POST' , 'DELETE' , 'PATCH' ] )