Glance CORS config with port breaks image upload

Bug #2060317 reported by Sam Schmitt
This bug report is a duplicate of:  Bug #2051164: Horizon + Glance-api CORS block. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

On a newly deployed 2023.2 stack, image uploads via Horizon fail due to a CORs error. Uploads via the OpenStack CLI/API work properly. The browser inspector shows that the request to the glance api is not from an allowed origin. Looking at the glance config, it has the section

[cors]
allowed_origin = https://example.com:443

Horizon is hosted at https://example.com with proper TLS configuration via K-A. It seems that the port in the config breaks this. After manually removing the port from the config option on all controllers and restarting the glance_api containers, image uploads via Horizon worked properly.

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

Other bug subscribers

Remote bug watches

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