mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-21 10:15:04 +02:00
fix(skip-objects): enlarged plate preview fails to load on auth-enabled instances (#1046)
The mini thumbnail wrapped its src with withStreamToken() (appends the
short-lived camera-stream token, needed because <img> can't send an
Authorization header), but the enlarged lightbox <img> used a bare
${status.cover_url}?view=top. On auth-enabled instances the backend
rejected the unauthenticated request and the browser showed the
broken-image icon. Wrap the enlarged src with withStreamToken() too.
This commit is contained in:
@@ -311,7 +311,7 @@ export function SkipObjectsModal({ printerId, isOpen, onClose }: SkipObjectsModa
|
||||
>
|
||||
{status?.cover_url ? (
|
||||
<img
|
||||
src={`${status.cover_url}?view=top`}
|
||||
src={withStreamToken(`${status.cover_url}?view=top`)}
|
||||
alt={t('printers.printPreview')}
|
||||
className="w-full h-full object-contain rounded-lg bg-gray-900"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user