Enable CORS for nova

Change-Id: Ic6df58947bb2cb1e183b5c88ed8d287191e5ee07
Depends-On: I2ec2f8d2146e8a067aadc97f5997aa40ad8d4812
This commit is contained in:
Honza Pokorny 2018-02-07 15:50:30 -04:00
parent 5353915e2c
commit e86ba84691
2 changed files with 6 additions and 0 deletions

View File

@ -498,6 +498,7 @@ nova_config {
include ::nova::compute::ironic
include ::nova::network::neutron
include ::nova::cors
# Ironic

View File

@ -788,6 +788,11 @@ tripleo::keepalived::virtual_router_id_base: 40
# UI
keystone::cors::allowed_origin: '*'
nova::cors::allowed_origin: '*'
nova::cors::max_age: 3600
nova::cors::allow_methods: 'GET,POST,PUT,DELETE,OPTIONS,PATCH'
nova::cors::allow_headers: 'Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Auth-Token'
nova::cors::expose_headers: 'Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma'
ironic::cors::allowed_origin: '*'
ironic::cors::max_age: 3600
ironic::cors::allow_methods: 'GET,POST,PUT,DELETE,OPTIONS,PATCH'