From 46988c3bfcc441a401fa8fbed8a5ba0df83a6a07 Mon Sep 17 00:00:00 2001 From: Boris Kurktchiev Date: Sat, 12 Sep 2026 19:12:58 -0400 Subject: [PATCH 1/2] fix: fetch the manifest with cookies (crossorigin=use-credentials) so the Home Screen icon survives an auth proxy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Browsers request the web app manifest without credentials, even from the same origin — the spec's default; Safari follows it, Chromium sends cookies anyway. Behind a login proxy (Authelia, Cloudflare Access, Teleport…) that request gets the proxy's redirect instead of manifest.json. iOS 26 picks the Home Screen icon from the manifest ("If you define your icons in the manifest, they're used"), so Add to Home Screen ends with the generic icon. crossorigin="use-credentials" is the attribute the spec provides for this; MDN documents it for exactly this case, Home Assistant and GitLab ship it. No effect on a deployment without a proxy: same origin, same file. Verified: `npm run build` keeps the attribute in dist/index.html; frontend suite 109 files / 1613 tests. Co-Authored-By: Claude Fable 5.1 (cherry picked from commit 8b82a5d2571c79c92c08f03f17d16cd0c445d70b) --- frontend/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index fa5f54a..12f563d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -10,7 +10,10 @@ - + + From 7abada3bfcdaf323f86929951f4ce5dbd5797bfb Mon Sep 17 00:00:00 2001 From: Boris Kurktchiev Date: Sat, 12 Sep 2026 20:02:43 -0400 Subject: [PATCH 2/2] docs: behind an auth proxy, let the icons and the manifest through without a login iOS fetches the Home Screen icon outside the page, without the session cookie (observed on iOS 26.6 behind Teleport: the page and the manifest reach nginx, the icon request never does, iOS draws a letter tile). The manifest attribute in the previous commit covers the manifest fetch; the icon fetch is the proxy's to exempt. Names the knob for Authelia, Authentik, Cloudflare Access and oauth2-proxy, and says what a proxy without path exemptions has to do instead. Co-Authored-By: Claude Fable 5.1 --- docs/SELF_HOSTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/SELF_HOSTING.md b/docs/SELF_HOSTING.md index 370f8e5..5551f5a 100644 --- a/docs/SELF_HOSTING.md +++ b/docs/SELF_HOSTING.md @@ -159,6 +159,16 @@ same device. Prefer to keep the whole thing off the open internet? A VPN or an auth proxy (Authelia, Cloudflare Access…) in front still works, and composes with the above. +Behind an auth proxy, let three files through without a login: `/icon-180.png`, `/icon-512.png` +and `/manifest.json` — the app's icon and its manifest, nothing personal in them. iOS fetches the +Home Screen icon outside the page, without your session cookie, so a gated icon comes back as the +proxy's login page and iOS 26 draws a letter tile instead of the dumbbell (observed on iOS 26.6 +behind Teleport; Authelia users know the same from favicons and manifests). Authelia: a `bypass` +rule for those paths; Authentik: unauthenticated paths; Cloudflare Access: a bypass policy; +oauth2-proxy: `skip_auth_routes`. A proxy that cannot exempt a path (Teleport) has to serve the +icons inline as `data:` URLs instead — Safari 26 accepts those, older iOS does not, which is why +that is not the default here. + ## 5. Fitting it into an existing stack The defaults assume openGym is the only thing here: a service called `api` on port 3000, and nginx