Skip to content

Commit 6305ae4

Browse files
committed
Allow X-OpenStack-Nova-API-Version header in CORS
By default, we don't currently allow the Nova microversion header for CORS requests. It should be something that is included out of the box because it's part of the core API. Deployers can workaround this by overriding allow_headers, but we should provide a better experience out of the box. Closes-Bug: #1931908 Change-Id: Idf4650f36952331f02d7512580c21451f3ee3b63 (cherry picked from commit b02a95a)
1 parent 78a63c2 commit 6305ae4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nova/middleware.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ def set_defaults():
2424
'X-Roles',
2525
'X-Service-Catalog',
2626
'X-User-Id',
27-
'X-Tenant-Id'],
27+
'X-Tenant-Id',
28+
'X-OpenStack-Nova-API-Version',
29+
'OpenStack-API-Version'],
2830
expose_headers=['X-Auth-Token',
2931
'X-Openstack-Request-Id',
3032
'X-Subject-Token',
31-
'X-Service-Token'],
33+
'X-Service-Token',
34+
'X-OpenStack-Nova-API-Version',
35+
'OpenStack-API-Version'],
3236
allow_methods=['GET',
3337
'PUT',
3438
'POST',

0 commit comments

Comments
 (0)