From 693a6f57a83475b7c260b023ba0d5947c80cb8db Mon Sep 17 00:00:00 2001 From: tmarlok Date: Wed, 31 Oct 2018 12:54:20 +0100 Subject: [PATCH] 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 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8875cb8b..993edaa5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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