mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-11-23 04:37:57 +00:00
New [Web_Viewer] ha_ingress flag. When it's on, requests from the Supervisor (172.30.32.2) carrying X-Ingress-Path get SCRIPT_NAME set from that header, count as authenticated (Home Assistant already logged the user in), and Socket.IO accepts the public Home Assistant origin. Templates use url_for, and browser code goes through window.appUrl and the existing fetch wrapper, so every link, redirect, API call and socket honors the prefix. With the flag off, nothing changes. A regression test fails on new root-relative URL literals that bypass those helpers.