summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Sufiev <tsufiev@mirantis.com>2015-10-22 14:13:46 +0300
committerTimur Sufiev <tsufiev@mirantis.com>2015-10-22 14:15:28 +0300
commit562173aeb7839eaca6274531b0e91147941af6df (patch)
tree43353d3329e23f635784a704f58a0216c97de38f
parent4503d21268075feb05932217df38f7b38cd5994c (diff)
downloadoslo-middleware-562173aeb7839eaca6274531b0e91147941af6df.tar.gz
Add 'X-Auth-Token' default header to CORS middleware
This specific header is needed for passing keystone token from JS clients to the OpenStack services, thus making Keystone authentication possible. Change-Id: Ib3b7787c0fd1dcc1a1d199c3e32100523f326d9f
-rw-r--r--oslo_middleware/cors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_middleware/cors.py b/oslo_middleware/cors.py
index 65d7be0..891dd99 100644
--- a/oslo_middleware/cors.py
+++ b/oslo_middleware/cors.py
@@ -35,7 +35,7 @@ CORS_OPTS = [
'credentials'),
cfg.ListOpt('expose_headers',
default=['Content-Type', 'Cache-Control', 'Content-Language',
- 'Expires', 'Last-Modified', 'Pragma'],
+ 'Expires', 'Last-Modified', 'Pragma', 'X-Auth-Token'],
help='Indicate which headers are safe to expose to the API. '
'Defaults to HTTP Simple Headers.'),
cfg.IntOpt('max_age',
@@ -47,7 +47,7 @@ CORS_OPTS = [
'request.'),
cfg.ListOpt('allow_headers',
default=['Content-Type', 'Cache-Control', 'Content-Language',
- 'Expires', 'Last-Modified', 'Pragma'],
+ 'Expires', 'Last-Modified', 'Pragma', 'X-Auth-Token'],
help='Indicate which header field names may be used during '
'the actual request.')
]