Files
kuentagym/frontend/index.html
T
Boris Kurktchiev 46988c3bfc fix: fetch the manifest with cookies (crossorigin=use-credentials) so the Home Screen icon survives an auth proxy
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 <noreply@anthropic.com>
(cherry picked from commit 8b82a5d2571c79c92c08f03f17d16cd0c445d70b)
2026-09-12 19:13:39 -04:00

25 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover,user-scalable=no">
<title>openGym</title>
<meta name="description" content="Personal gym & body weight tracker">
<meta name="theme-color" content="#0c0e12">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="openGym">
<!-- use-credentials: browsers fetch the manifest without cookies, even same-origin; behind an auth
proxy (Authelia, Cloudflare Access, Teleport…) that fetch is a login redirect and the Home Screen
icon comes out generic. iOS 26 reads the icon from the manifest, so this is where it shows. -->
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
<link rel="apple-touch-icon" href="icon-180.png">
<link rel="icon" type="image/png" href="icon-180.png">
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>