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
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:
parent
720cdc446d
commit
40fbdb7370
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue