Horizon + Glance-api CORS block

Bug #2051164 reported by Kendrick Luong
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

Hi there,

Im currently running:

Kolla-ansible: 17.0.0
Image: 2023.2-rocky-9
Chrome Version: 120.0.6099.110 / Edge 86.0.622.38

The derived horizon_public_endpoint variable if using TLS contains the port 443 at the end.
e.g https://openstack.domain.lan:443

CORS does not accept the port in the domain, therefore when uploading an image from horizon it fails with a CORS error. Removal of the port causes CORS to function correctly

Revision history for this message
Elvis Ratzlaff (eratzlaff) wrote :

Hi,

A quick and simple fix is to define the horizon ports to your globals.yml file like this:

horizon_port: 80
horizon_tls_port: 443

make sure not to add the "" to the numbers, I am not sure if this change creates other issues.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.