fix(request): Cross origin issue with fetching image and video (#3416)
* Cross origin issue when - rendering thumbnails from prerendered url - playing videos * empty commit to trigger CI/CD check * empty commit to trigger CI/CD check
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -29,6 +29,7 @@ function OHIFCornerstoneVideoViewport({ displaySets }) {
|
|||||||
controlsList="nodownload"
|
controlsList="nodownload"
|
||||||
preload="auto"
|
preload="auto"
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
|
crossOrigin="anonymous"
|
||||||
>
|
>
|
||||||
<source src={url} type={mimeType} />
|
<source src={url} type={mimeType} />
|
||||||
<source src={url} type={mimeType} />
|
<source src={url} type={mimeType} />
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ const Thumbnail = ({
|
|||||||
src={imageSrc}
|
src={imageSrc}
|
||||||
alt={imageAltText}
|
alt={imageAltText}
|
||||||
className="object-none min-h-32"
|
className="object-none min-h-32"
|
||||||
|
crossOrigin="anonymous"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div>{imageAltText}</div>
|
<div>{imageAltText}</div>
|
||||||
|
|||||||
Reference in new issue
Block a user