diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/index.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/index.ts index eab5e53ad9..a5fde1d0c2 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/index.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/index.ts @@ -198,7 +198,7 @@ addControlNetImageProcessedListener(); addControlNetAutoProcessListener(); // Update image URLs on connect -addUpdateImageUrlsOnConnectListener(); +// addUpdateImageUrlsOnConnectListener(); // Boards addImageAddedToBoardFulfilledListener(); diff --git a/invokeai/frontend/web/src/features/canvas/components/IAICanvasImage.tsx b/invokeai/frontend/web/src/features/canvas/components/IAICanvasImage.tsx index 07cad52173..eb41857e46 100644 --- a/invokeai/frontend/web/src/features/canvas/components/IAICanvasImage.tsx +++ b/invokeai/frontend/web/src/features/canvas/components/IAICanvasImage.tsx @@ -3,6 +3,7 @@ import { Image, Rect } from 'react-konva'; import { useGetImageDTOQuery } from 'services/api/endpoints/images'; import useImage from 'use-image'; import { CanvasImage } from '../store/canvasTypes'; +import { $authToken } from 'services/api/client'; type IAICanvasImageProps = { canvasImage: CanvasImage; @@ -12,7 +13,10 @@ const IAICanvasImage = (props: IAICanvasImageProps) => { const { currentData: imageDTO, isError } = useGetImageDTOQuery( imageName ?? skipToken ); - const [image] = useImage(imageDTO?.image_url ?? '', 'anonymous'); + const [image] = useImage( + imageDTO?.image_url ?? '', + $authToken.get() ? 'use-credentials' : 'anonymous' + ); if (isError) { return ;