Browse Source

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
changes/90/614490/4
tmarlok 7 months ago
parent
commit
693a6f57a8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      defaults/main.yml

+ 1
- 1
defaults/main.yml View File

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

Loading…
Cancel
Save