Adds protocol to glance_cors_allowed_origin var

When the horizon runs on https, then the IP is not enough in
the allowed_origins, the protocoll must be included as well.

Change-Id: Icd806d98b74671278ea17837107ee9bb14f1b303
Closes-Bug: #1799910
This commit is contained in:
tmarlok 2018-10-31 12:54:20 +01:00
parent d28c0dced7
commit 693a6f57a8
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ glance_keystone_auth_plugin: password
glance_image_cache_max_size: 10737418240
# CORS options
glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(external_lb_vip_address, None) }}"
glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(openstack_service_publicuri_proto | default('http') + '://' + external_lb_vip_address, None) }}"
# If ``glance_api_workers`` is unset the system will use half the number of available VCPUS to
# compute the number of api workers to use.
# glance_api_workers: 16