소스 검색

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.
maziggy 4 달 전
부모
커밋
e5dfb96351
4개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      CHANGELOG.md
  2. 1 1
      frontend/src/components/SkipObjectsModal.tsx
  3. 0 0
      static/assets/index-BVXFAk6e.js
  4. 1 1
      static/index.html

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
CHANGELOG.md


+ 1 - 1
frontend/src/components/SkipObjectsModal.tsx

@@ -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"
             />

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
static/assets/index-BVXFAk6e.js


+ 1 - 1
static/index.html

@@ -26,7 +26,7 @@
 
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-CFcQzo54.js"></script>
+    <script type="module" crossorigin src="/assets/index-BVXFAk6e.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-CkAOuJaW.css">
   </head>
   <body>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.