diff --git a/packages/frontend/src/components/MkCropperDialog.vue b/packages/frontend/src/components/MkCropperDialog.vue index 0186cfc2c0..576f66f6e4 100644 --- a/packages/frontend/src/components/MkCropperDialog.vue +++ b/packages/frontend/src/components/MkCropperDialog.vue @@ -55,7 +55,7 @@ const props = defineProps<{ uploadFolder?: string | null; }>(); -const imgUrl = getProxiedImageUrl(props.file.url, undefined, true); +const imgUrl = getProxiedImageUrl(props.file.url, undefined, true).replace(/^https?:\/\/[^/]+/, location.origin); const dialogEl = shallowRef>(); const imgEl = shallowRef(); let cropper: Cropper | null = null;