Foreman icons missing when using server alias

Problem:

We have a new foreman server that is working fine when we browse to the admin console using the FQDN of the server, i.e. https://servername.mydomain. But we also have a DNS CNAME record of foreman.mydomain, which points to the foreman server. That way we can use “foreman” in the URL instead of the actual server name (which might change in the future).

When we browse to the admin console with the URL https://foreman.mydomain, none of the icons on the pages appear. Instead of green checks, red x’s, or helpful menu icons, we just see little cryptic gray boxes.

Why do the icons only show with the FQDN and not the CNAME? Where are those icons stored on the server?

Foreman and Proxy versions:
3.5.1

Distribution and version:
Alma Linux 8.7

This works for me in a quick test.

Could you post a few screenshots and also look in the Browser developer console how it tries to access the icons and what the error is when it fails?