Merge "Added Keystone and RequestID headers to CORS middleware"
This commit is contained in:
commit
bc03f216d8
|
@ -63,9 +63,12 @@ def setup_app(config=None):
|
|||
# CORS must be the last one.
|
||||
app = cors.CORS(app, CONF)
|
||||
app.set_latent(
|
||||
allow_headers=['X-Auth-Token', 'X-Server-Management-Url'],
|
||||
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'],
|
||||
allow_methods=['GET', 'PUT', 'POST', 'DELETE', 'PATCH'],
|
||||
expose_headers=['X-Auth-Token', 'X-Server-Management-Url']
|
||||
expose_headers=['X-Auth-Token', 'X-Subject-Token', 'X-Service-Token',
|
||||
'X-OpenStack-Request-ID', 'X-Server-Management-Url']
|
||||
)
|
||||
|
||||
return app
|
||||
|
|
Loading…
Reference in New Issue