I’m trying to create an addon which lets me use HA Ingress to access an internal service.
The issue I’m having is that sometimes the service returns absolute URLs to some of its assets. This causes 404s. For example:
“script.js” is successfully fetched as…
https://myhomeassistant.com/api/hassio_ingress/CCv8u55X6LySeReUebnyPuJhYmi1Y4/script.js
“/script.js” is unsuccessfully fetched as…
https://myhomeassistant.com/script.js
I’m aware there’s a X-Ingress-Path
path header which a backend service can parse to generate a working URL - however that required modifying the backend service
Any thoughts on how to transparently handle absolute paths with HA Ingress?