fix: JWT als Query-Param bei photo.php (Apache filtert Header auf prod)
All checks were successful
Deploy baustelle-pwa / deploy (push) Successful in 1s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
[deploy]
This commit is contained in:
Eduard Wisch 2026-04-08 23:27:27 +02:00
parent 720cdc446d
commit 40fbdb7370

View file

@ -95,12 +95,11 @@
const t = await getToken();
if (!t) return null;
const params = new URLSearchParams({ relpath });
// JWT als Query-Param, weil Apache auf prod den Authorization-Header filtert
const params = new URLSearchParams({ relpath, jwt: t });
if (size) params.set('size', size);
const r = await fetch(API_BASE + '/photo.php?' + params.toString(), {
headers: { Authorization: 'Bearer ' + t },
});
const r = await fetch(API_BASE + '/photo.php?' + params.toString());
if (!r.ok) {
const body = await r.text().catch(() => '');
console.warn('photo.php failed', r.status, relpath, body);