support cors

Change-Id: Ie1cd504de03f2704250048f810d3026de721fad2
This commit is contained in:
Eyal 2016-11-21 10:58:07 +02:00
parent aac14c51a2
commit 9cb1be7b58
1 changed files with 5 additions and 1 deletions

View File

@ -1,10 +1,14 @@
# Remove keystone_authtoken from the pipeline if you don't want to use keystone authentication
[pipeline:main]
pipeline = keystone_authtoken vitrage
pipeline = cors keystone_authtoken vitrage
[app:vitrage]
paste.app_factory = vitrage.api.app:app_factory
[filter:keystone_authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
oslo_config_project = vitrage
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = vitrage