Please follow the below template, it will help us to help you!
Expected Behaviour:
I access my Pi-hole admin interfaces from pihole.mydomain.net
and pihole2.mydomain.net
(I own the domain but these are accessible from the LAN only, via /etc/hosts). To pass the CORS check and be able to update any settings, I have to first edit /var/www/html/admin/scripts/pi-hole/php/auth.php
and add each domain to the $AUTHORIZED_HOSTNAMES array manually. Whenever the web interface is updated, however, auth.php
is overwritten and I have to re-add my domains. Is there a persistent array somewhere that I can add my domains, so that updates to the web interface don't require manual modification every time?
Actual Behaviour:
As above, the $AUTHORIZED_HOSTNAMES array, as part of auth.php
, is overwritten every time the web interface is updated, and I have to manually re-add my domains.
Debug Token:
None created at this time.