just recently checked, that my Pi-hole is acting strange when accessed through my dedicated url. All smooth, when I accessing through Pi-holes IP-address. Basically it is working, but the webfrontend does not display Groups, Clients, Domains, Adlists, Diagnosis and throws errors as well (sometimes). See attached screenshots.
I think the errors came from a try of myself to fix that by updating Docker-Variable domainname to the public domain name of my Pi-hole, which was wrong. I was trying to edit lighttpd's external.conf, but:
right before I've noticed, that VIRTUAL_HOST was not set to my external url in my docker-compose. By doing this, the CORS-errors are gone and the access through external url is now working fine.
Thanks a lot for your hint, which made me find the solution.